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
This commit is contained in:
Eric Andersen 2001-06-30 18:00:26 +00:00
parent 8fa1bf7cd6
commit 7e516797f9
2 changed files with 2 additions and 2 deletions

View File

@ -610,7 +610,7 @@ static int list_single(struct dnode *dn)
break;
case LIST_BLOCKS:
#ifdef BB_FEATURE_HUMAN_READABLE
fprintf(stdout, "%4s ", make_human_readable_str(dn->dstat.st_blocks>>1,
fprintf(stdout, "%6s ", make_human_readable_str(dn->dstat.st_blocks>>1,
KILOBYTE, (ls_disp_hr==TRUE)? 0: KILOBYTE));
#else
#if _FILE_OFFSET_BITS == 64

2
ls.c
View File

@ -610,7 +610,7 @@ static int list_single(struct dnode *dn)
break;
case LIST_BLOCKS:
#ifdef BB_FEATURE_HUMAN_READABLE
fprintf(stdout, "%4s ", make_human_readable_str(dn->dstat.st_blocks>>1,
fprintf(stdout, "%6s ", make_human_readable_str(dn->dstat.st_blocks>>1,
KILOBYTE, (ls_disp_hr==TRUE)? 0: KILOBYTE));
#else
#if _FILE_OFFSET_BITS == 64