mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
du: Invert apparent-size behaviour
The apparent size is what `stat` says what we use. The non-apparent size is the blocks that we actually use on-disk.
This commit is contained in:
parent
d2d6e7835e
commit
220a50111a
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ ErrorOr<off_t> print_space_usage(String const& path, DuOption const& du_option,
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t size = path_stat.st_size;
|
size_t size = path_stat.st_size;
|
||||||
if (du_option.apparent_size) {
|
if (!du_option.apparent_size) {
|
||||||
constexpr auto block_size = 512;
|
constexpr auto block_size = 512;
|
||||||
size = path_stat.st_blocks * block_size;
|
size = path_stat.st_blocks * block_size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue