commit | a77cfbfd0cbc6dbed2b22e8d8f47d28346a3179a | [log] [tgz] |
---|---|---|
author | Manuel Novoa III <mjn3@codepoet.org> | Sat Jun 30 07:46:50 2001 +0000 |
committer | Manuel Novoa III <mjn3@codepoet.org> | Sat Jun 30 07:46:50 2001 +0000 |
tree | ded63d6cfbe66144c320a84f91d57edfb44fafe3 | |
parent | d877d44d127cb58181f8f8886675406fb99cc6aa [diff] [blame] |
ls -s was reporting bytes instead of blocks.
diff --git a/ls.c b/ls.c index d9ecf04..e51a3bc 100644 --- a/ls.c +++ b/ls.c
@@ -611,7 +611,7 @@ case LIST_BLOCKS: #ifdef BB_FEATURE_HUMAN_READABLE fprintf(stdout, "%4s ", make_human_readable_str(dn->dstat.st_blocks>>1, - KILOBYTE, (ls_disp_hr==TRUE)? 0: 1)); + KILOBYTE, (ls_disp_hr==TRUE)? 0: KILOBYTE)); #else #if _FILE_OFFSET_BITS == 64 printf("%4lld ", dn->dstat.st_blocks>>1);