aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-06-30 07:46:50 +0000
committermjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-06-30 07:46:50 +0000
commit93fa04397e9af35b6c027c31190366691651d539 (patch)
treeded63d6cfbe66144c320a84f91d57edfb44fafe3
parentd81cf6f3b47e4fcf586a9f4bbc31fae400a618bc (diff)
downloadbusybox-w32-93fa04397e9af35b6c027c31190366691651d539.tar.gz
busybox-w32-93fa04397e9af35b6c027c31190366691651d539.tar.bz2
busybox-w32-93fa04397e9af35b6c027c31190366691651d539.zip
ls -s was reporting bytes instead of blocks.
git-svn-id: svn://busybox.net/trunk/busybox@2957 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--coreutils/ls.c2
-rw-r--r--ls.c2
2 files changed, 2 insertions, 2 deletions
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)
611 case LIST_BLOCKS: 611 case LIST_BLOCKS:
612#ifdef BB_FEATURE_HUMAN_READABLE 612#ifdef BB_FEATURE_HUMAN_READABLE
613 fprintf(stdout, "%4s ", make_human_readable_str(dn->dstat.st_blocks>>1, 613 fprintf(stdout, "%4s ", make_human_readable_str(dn->dstat.st_blocks>>1,
614 KILOBYTE, (ls_disp_hr==TRUE)? 0: 1)); 614 KILOBYTE, (ls_disp_hr==TRUE)? 0: KILOBYTE));
615#else 615#else
616#if _FILE_OFFSET_BITS == 64 616#if _FILE_OFFSET_BITS == 64
617 printf("%4lld ", dn->dstat.st_blocks>>1); 617 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)
611 case LIST_BLOCKS: 611 case LIST_BLOCKS:
612#ifdef BB_FEATURE_HUMAN_READABLE 612#ifdef BB_FEATURE_HUMAN_READABLE
613 fprintf(stdout, "%4s ", make_human_readable_str(dn->dstat.st_blocks>>1, 613 fprintf(stdout, "%4s ", make_human_readable_str(dn->dstat.st_blocks>>1,
614 KILOBYTE, (ls_disp_hr==TRUE)? 0: 1)); 614 KILOBYTE, (ls_disp_hr==TRUE)? 0: KILOBYTE));
615#else 615#else
616#if _FILE_OFFSET_BITS == 64 616#if _FILE_OFFSET_BITS == 64
617 printf("%4lld ", dn->dstat.st_blocks>>1); 617 printf("%4lld ", dn->dstat.st_blocks>>1);