From: Jim Meyering Date: Wed, 10 Jul 2002 10:22:10 +0000 (+0000) Subject: (show_dev): Make the `Use%' column align with X-Git-Tag: FILEUTILS-4_1_10~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=545b6d754133a26349d03226066492f4fcc008ef;p=thirdparty%2Fcoreutils.git (show_dev): Make the `Use%' column align with its heading, even when -P is used with -h or -H. --- diff --git a/src/df.c b/src/df.c index 190d552df8..05364c82de 100644 --- a/src/df.c +++ b/src/df.c @@ -1,5 +1,5 @@ /* df - summarize free disk space - Copyright (C) 91, 1995-2001 Free Software Foundation, Inc. + Copyright (C) 91, 1995-2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -328,7 +328,7 @@ show_dev (const char *disk, const char *mount_point, const char *fstype, else { width = output_block_size < 0 ? 5 + (output_block_size == -1000) : 9; - use_width = posix_format ? 8 : 4; + use_width = (posix_format && 0 <= output_block_size) ? 8 : 4; input_units = fsu.fsu_blocksize; output_units = output_block_size; total = fsu.fsu_blocks;