]> git.ipfire.org Git - thirdparty/coreutils.git/commit
(<inttypes.h>): Include if HAVE_INTTYPES_H.
authorJim Meyering <jim@meyering.net>
Sun, 30 Nov 1997 10:25:02 +0000 (10:25 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 30 Nov 1997 10:25:02 +0000 (10:25 +0000)
commit76916942cae4a1500ff00a0ff7fa80f0e12158fa
tree810ec98bad40eae32bcc0f02b20a1c3a33278382
parent72bc3b818f6c7e9e190afee12c133275c88fe59f
(<inttypes.h>): Include if HAVE_INTTYPES_H.
("human.h"): Include.
(LONGEST_HUMAN_READABLE_1K_BYTE_BLOCKS): Remove.
(human_readable_base): Renamed from human_blocks; value is now
zero or positive integer, not just zero or nonzero.
(output_units): New variable;
replaces booleans kilobyte_blocks and megabyte_blocks.
(long_options): Add --si or -H.
(print_header): Adjust to renamed option variables.
(human_readable_1k_blocks): Remove.
(show_dev): Count blocks using uintmax_t, not long.
Calculate percentages using double, not long; this still isn't
perfect as it suffers double rounding, but it's more likely to
round correctly in practice than using long did.
Adjust to renamed option variables.
Use new human_readable library function to format uintmax_t values.
(usage): Add -H, --si.
(main): Adjust to renamed option variables.
Use -H if BLOCKSIZE is SI.  Add -H.
src/df.c