[patch] df.c: missing required space
Dirk Clemens
develop at cle-mens.de
Wed Sep 7 22:49:37 UTC 2005
If the filesystem name has 21 or more chars and the total space of that
device is more than 100 GB then the required space between filesystem
and total is not printed. The patch correct this.
--- df-orig.c 2005-09-08 00:42:37.697972776 +0200
+++ df.c 2005-09-08 00:43:00.000000000 +0200
@@ -147,7 +147,7 @@
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("%-21s %9ld %9ld %9ld %3ld%% %s\n",
device,
kscale(s.f_blocks, s.f_bsize),
kscale(s.f_blocks-s.f_bfree,
s.f_bsize),
Dirk
--
Mail: dirk at cle-mens.de http://www.cle-mens.de
Dirk Clemens, Deininghauser Straße 68, 44357 Dortmund
More information about the busybox
mailing list