zopencommunity / ncduport

Ncdu is a disk usage analyzer with an ncurses interface
Apache License 2.0
0 stars 0 forks source link

File size shown much smaller than expected #4

Open 1000TurquoisePogs opened 6 months ago

1000TurquoisePogs commented 6 months ago

On ncdu v1.19, most sizes of files are incorrect. Probably folders too as a result. The values shown are significantly smaller than seen by other tools.

For example, let's say I have a "500mb" pax archive.

Likewise, a 103kb text file becomes 20kb in ncdu. A 17mb mp4 file becomes 8.3mb in ncdu.

I can only imagine how it gets these numbers, but the relative sizes of the files is mostly intact. The pax is still larger than the text file for example. But the ratio of size difference seems inconsistent. Maybe block size is counted wrong?