mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +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
Notes:
sideshowbarker
2024-07-17 08:55:54 +09:00
Author: https://github.com/timschumi
Commit: 220a50111a
Pull-request: https://github.com/SerenityOS/serenity/pull/14633
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;
|
||||
if (du_option.apparent_size) {
|
||||
if (!du_option.apparent_size) {
|
||||
constexpr auto block_size = 512;
|
||||
size = path_stat.st_blocks * block_size;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue