Fix ls so it uses make_human_readable_str() the same way already

used by 'du' and 'df'.  Now we just need to fix make_human_readable_str
so it behaves they way it used to before Matt fixed it.
This commit is contained in:
Eric Andersen 2001-03-28 20:26:51 +00:00
parent d98e574d41
commit c835567914
2 changed files with 2 additions and 2 deletions

View File

@ -648,7 +648,7 @@ static int list_single(struct dnode *dn)
printf("%4d, %3d ", (int)MAJOR(dn->dstat.st_rdev), (int)MINOR(dn->dstat.st_rdev));
} else {
#ifdef BB_FEATURE_HUMAN_READABLE
fprintf(stdout, "%9s ", make_human_readable_str(dn->dstat.st_size,
fprintf(stdout, "%9s ", make_human_readable_str(dn->dstat.st_size>>10,
(ls_disp_hr==TRUE)? 0: 1));
#else
#if _FILE_OFFSET_BITS == 64

2
ls.c
View File

@ -648,7 +648,7 @@ static int list_single(struct dnode *dn)
printf("%4d, %3d ", (int)MAJOR(dn->dstat.st_rdev), (int)MINOR(dn->dstat.st_rdev));
} else {
#ifdef BB_FEATURE_HUMAN_READABLE
fprintf(stdout, "%9s ", make_human_readable_str(dn->dstat.st_size,
fprintf(stdout, "%9s ", make_human_readable_str(dn->dstat.st_size>>10,
(ls_disp_hr==TRUE)? 0: 1));
#else
#if _FILE_OFFSET_BITS == 64