diff options
author | Elliott Hughes <enh@google.com> | 2020-04-08 10:36:03 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-04-08 15:37:05 -0500 |
commit | 44c43973238ca1c8d7ac6e243932fb5b32731155 (patch) | |
tree | b88dc431620cfd0ddf1cdc34581b1c742b85e219 /toys/pending/more.c | |
parent | b7bee86f384ef57a01686543ad2d108e8d6f4266 (diff) | |
download | toybox-44c43973238ca1c8d7ac6e243932fb5b32731155.tar.gz |
ls: fix -h with block counts.
The filter() function modifies st_blocks so it's always 1KiB rather than
512B blocks, but the human-readable output was still assuming 512B. This
meant that `ls -sh` was showing figures half the size of `ls -s`, and
that the "total" line with -h was also off by a factor of 2.
No new test, because I don't know how to write one that would work on
all file systems.
Bug: http://b/153383721
Diffstat (limited to 'toys/pending/more.c')
0 files changed, 0 insertions, 0 deletions