aboutsummaryrefslogtreecommitdiff
path: root/coreutils/ls.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-15 18:59:02 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-15 18:59:02 +0000
commit1d152ebc2c4a73e080a994037866b26edc4ecbb3 (patch)
treec624a43575e2985274955d37569bf251a03bd3ee /coreutils/ls.c
parentd7590a28be97b226e77c9f52517a10d7343e5dbc (diff)
downloadbusybox-w32-1d152ebc2c4a73e080a994037866b26edc4ecbb3.tar.gz
busybox-w32-1d152ebc2c4a73e080a994037866b26edc4ecbb3.tar.bz2
busybox-w32-1d152ebc2c4a73e080a994037866b26edc4ecbb3.zip
Fixed 'ls -s' so it actually displays block sizes again.
-Erik git-svn-id: svn://busybox.net/trunk/busybox@1823 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r--coreutils/ls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 06e23e612..dd38dd5f3 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -610,7 +610,7 @@ int list_single(struct dnode *dn)
610 break; 610 break;
611 case LIST_BLOCKS: 611 case LIST_BLOCKS:
612#ifdef BB_FEATURE_HUMAN_READABLE 612#ifdef BB_FEATURE_HUMAN_READABLE
613 fprintf(stdout, "%5s ", format(dn->dstat.st_size, ls_disp_hr)); 613 fprintf(stdout, "%5s ", format(dn->dstat.st_blocks>>1, 1));
614#else 614#else
615#if _FILE_OFFSET_BITS == 64 615#if _FILE_OFFSET_BITS == 64
616 printf("%4lld ", dn->dstat.st_blocks>>1); 616 printf("%4lld ", dn->dstat.st_blocks>>1);
@@ -650,9 +650,9 @@ int list_single(struct dnode *dn)
650 fprintf(stdout, "%9s ", format(dn->dstat.st_size, ls_disp_hr)); 650 fprintf(stdout, "%9s ", format(dn->dstat.st_size, ls_disp_hr));
651#else 651#else
652#if _FILE_OFFSET_BITS == 64 652#if _FILE_OFFSET_BITS == 64
653 printf("%9lld ", dn->dstat.st_size); 653 printf("%9lld ", dn->dstat.st_size>>1);
654#else 654#else
655 printf("%9ld ", dn->dstat.st_size); 655 printf("%9ld ", dn->dstat.st_size>>1);
656#endif 656#endif
657#endif 657#endif
658 } 658 }