diff options
author | Jim Meyering <jim@meyering.net> | 2002-07-10 10:22:10 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-07-10 10:22:10 +0000 |
commit | 545b6d754133a26349d03226066492f4fcc008ef (patch) | |
tree | d64955cbeb210dae9c1fb5163c5855f84556181c /src/df.c | |
parent | 0fe8dc3290a7ca6f94d4d7ccfc23f14e22cbc4b5 (diff) | |
download | coreutils-545b6d754133a26349d03226066492f4fcc008ef.tar.xz |
(show_dev): Make the `Use%' column align with
its heading, even when -P is used with -h or -H.
Diffstat (limited to 'src/df.c')
-rw-r--r-- | src/df.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |