Patch from Dirk Clemens so df doesn't run numbers together on drives >100gig.

This commit is contained in:
Rob Landley 2005-09-10 02:59:35 +00:00
parent a80b290e30
commit 98ea849623

View File

@ -136,7 +136,7 @@ extern int df_main(int argc, char **argv)
}
#ifdef CONFIG_FEATURE_HUMAN_READABLE
bb_printf("%-21s%9s ", device,
bb_printf("%-20s %9s ", device,
make_human_readable_str(s.f_blocks, s.f_bsize, df_disp_hr));
bb_printf("%9s ",
@ -147,7 +147,7 @@ extern int df_main(int argc, char **argv)
make_human_readable_str(s.f_bavail, s.f_bsize, df_disp_hr),
blocks_percent_used, mount_point);
#else
bb_printf("%-21s%9ld %9ld %9ld %3ld%% %s\n",
bb_printf("%-20s %9ld %9ld %9ld %3ld%% %s\n",
device,
kscale(s.f_blocks, s.f_bsize),
kscale(s.f_blocks-s.f_bfree, s.f_bsize),