[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: df reports size incorrectly when used with "-B"
From: |
Paul Eggert |
Subject: |
Re: df reports size incorrectly when used with "-B" |
Date: |
Mon, 10 Mar 2003 00:30:05 -0800 (PST) |
Thanks for the bug report. Here's a draft patch, relative to
coreutils 4.5.9.
2003-03-10 Paul Eggert <address@hidden>
* src/df.c (print_header): Don't say "3444M 1M-blocks", as
it's confusing. Just say "Size 3444M". Fixes bug reported in
http://mail.gnu.org/archive/html/bug-coreutils/2003-03/msg00040.html
by Nilmoni Deb.
===================================================================
RCS file: src/df.c,v
retrieving revision 4.5.9.0
retrieving revision 4.5.9.1
diff -pu -r4.5.9.0 -r4.5.9.1
--- src/df.c 2003/03/04 21:07:53 4.5.9.0
+++ src/df.c 2003/03/10 08:25:12 4.5.9.1
@@ -166,6 +166,8 @@ print_header (void)
else if (posix_format)
printf (_(" %4s-blocks Used Available Capacity"),
umaxtostr (output_block_size, buf));
+ else if (human_output_opts & human_SI)
+ printf (_(" Size Used Available Use%%"));
else
{
int opts = (human_suppress_point_zero