From dca0b707c0f0998670f8e69600cc30d94e9b217b Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 27 Oct 2006 09:05:02 +0000 Subject: reshuffle libbb.h contents so that order of decls makes sense Found bad typo in largefile support :) --- coreutils/df.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'coreutils/df.c') diff --git a/coreutils/df.c b/coreutils/df.c index c569dae33..6ae3eed33 100644 --- a/coreutils/df.c +++ b/coreutils/df.c @@ -29,7 +29,7 @@ #ifndef CONFIG_FEATURE_HUMAN_READABLE static long kscale(long b, long bs) { - return ( b * (long long) bs + KILOBYTE/2 ) / KILOBYTE; + return ( b * (long long) bs + 1024/2 ) / 1024; } #endif @@ -38,7 +38,7 @@ int df_main(int argc, char **argv) long blocks_used; long blocks_percent_used; #ifdef CONFIG_FEATURE_HUMAN_READABLE - unsigned long df_disp_hr = KILOBYTE; + unsigned long df_disp_hr = 1024; #endif int status = EXIT_SUCCESS; unsigned opt; @@ -56,7 +56,7 @@ int df_main(int argc, char **argv) disp_units_hdr = " Size"; } if (opt & 2) { - df_disp_hr = MEGABYTE; + df_disp_hr = 1024*1024; disp_units_hdr = "1M-blocks"; } #else -- cgit v1.2.3