diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-06-30 18:00:26 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-06-30 18:00:26 +0000 |
commit | 7e516797f973fdf8535284606af101339f2e6be4 (patch) | |
tree | c4df0f6d8bdf512f65492216b41458ed5787afd3 | |
parent | 8fa1bf7cd6fefc5ac3fb13eb85569d874e84f88e (diff) | |
download | busybox-w32-7e516797f973fdf8535284606af101339f2e6be4.tar.gz busybox-w32-7e516797f973fdf8535284606af101339f2e6be4.tar.bz2 busybox-w32-7e516797f973fdf8535284606af101339f2e6be4.zip |
Pad the human readable output for 'ls -sh' to 6 chars, since we will
have numbers printed as XXX.YU, so we need 6 digits not 4.
-Erik
-rw-r--r-- | coreutils/ls.c | 2 | ||||
-rw-r--r-- | ls.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index e51a3bc0b..bd79cc940 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -610,7 +610,7 @@ static 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, "%4s ", make_human_readable_str(dn->dstat.st_blocks>>1, | 613 | fprintf(stdout, "%6s ", make_human_readable_str(dn->dstat.st_blocks>>1, |
614 | KILOBYTE, (ls_disp_hr==TRUE)? 0: KILOBYTE)); | 614 | KILOBYTE, (ls_disp_hr==TRUE)? 0: KILOBYTE)); |
615 | #else | 615 | #else |
616 | #if _FILE_OFFSET_BITS == 64 | 616 | #if _FILE_OFFSET_BITS == 64 |
@@ -610,7 +610,7 @@ static 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, "%4s ", make_human_readable_str(dn->dstat.st_blocks>>1, | 613 | fprintf(stdout, "%6s ", make_human_readable_str(dn->dstat.st_blocks>>1, |
614 | KILOBYTE, (ls_disp_hr==TRUE)? 0: KILOBYTE)); | 614 | KILOBYTE, (ls_disp_hr==TRUE)? 0: KILOBYTE)); |
615 | #else | 615 | #else |
616 | #if _FILE_OFFSET_BITS == 64 | 616 | #if _FILE_OFFSET_BITS == 64 |