summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorManuel Novoa III2001-06-30 07:46:50 +0000
committerManuel Novoa III2001-06-30 07:46:50 +0000
commita77cfbfd0cbc6dbed2b22e8d8f47d28346a3179a (patch)
treeded63d6cfbe66144c320a84f91d57edfb44fafe3 /coreutils
parentd877d44d127cb58181f8f8886675406fb99cc6aa (diff)
downloadbusybox-a77cfbfd0cbc6dbed2b22e8d8f47d28346a3179a.zip
busybox-a77cfbfd0cbc6dbed2b22e8d8f47d28346a3179a.tar.gz
ls -s was reporting bytes instead of blocks.
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index d9ecf04..e51a3bc 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -611,7 +611,7 @@ static int list_single(struct dnode *dn)
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);