From: Manuel Novoa III Date: Sat, 30 Jun 2001 07:46:50 +0000 (-0000) Subject: ls -s was reporting bytes instead of blocks. X-Git-Tag: 0_52~40 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a77cfbfd0cbc6dbed2b22e8d8f47d28346a3179a;p=oweals%2Fbusybox.git ls -s was reporting bytes instead of blocks. --- diff --git a/coreutils/ls.c b/coreutils/ls.c index d9ecf0490..e51a3bc0b 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); diff --git a/ls.c b/ls.c index d9ecf0490..e51a3bc0b 100644 --- a/ls.c +++ b/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);