ls -s was reporting bytes instead of blocks.
This commit is contained in:
parent
d877d44d12
commit
a77cfbfd0c
@ -611,7 +611,7 @@ static int list_single(struct dnode *dn)
|
|||||||
case LIST_BLOCKS:
|
case LIST_BLOCKS:
|
||||||
#ifdef BB_FEATURE_HUMAN_READABLE
|
#ifdef BB_FEATURE_HUMAN_READABLE
|
||||||
fprintf(stdout, "%4s ", make_human_readable_str(dn->dstat.st_blocks>>1,
|
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
|
#else
|
||||||
#if _FILE_OFFSET_BITS == 64
|
#if _FILE_OFFSET_BITS == 64
|
||||||
printf("%4lld ", dn->dstat.st_blocks>>1);
|
printf("%4lld ", dn->dstat.st_blocks>>1);
|
||||||
|
2
ls.c
2
ls.c
@ -611,7 +611,7 @@ static int list_single(struct dnode *dn)
|
|||||||
case LIST_BLOCKS:
|
case LIST_BLOCKS:
|
||||||
#ifdef BB_FEATURE_HUMAN_READABLE
|
#ifdef BB_FEATURE_HUMAN_READABLE
|
||||||
fprintf(stdout, "%4s ", make_human_readable_str(dn->dstat.st_blocks>>1,
|
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
|
#else
|
||||||
#if _FILE_OFFSET_BITS == 64
|
#if _FILE_OFFSET_BITS == 64
|
||||||
printf("%4lld ", dn->dstat.st_blocks>>1);
|
printf("%4lld ", dn->dstat.st_blocks>>1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user