ls -s was reporting bytes instead of blocks.

This commit is contained in:
Manuel Novoa III 2001-06-30 07:46:50 +00:00
parent d877d44d12
commit a77cfbfd0c
2 changed files with 2 additions and 2 deletions

View File

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

2
ls.c
View File

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