diff options
-rw-r--r-- | coreutils/ls.c | 6 | ||||
-rw-r--r-- | ls.c | 6 |
2 files changed, 6 insertions, 6 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 | } |
@@ -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 | } |