summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-06-18 09:48:04 +0100
committerPádraig Brady <P@draigBrady.com>2015-06-19 14:50:36 +0100
commit5863426dcfec2336cf0e1a28255e9080889fcb4c (patch)
tree62fd4164c050b6c27cc63fa191cc46c854a35ea7 /src
parent6fadd46acd5b813b545b58014ddd591ffdb5a41c (diff)
downloadcoreutils-5863426dcfec2336cf0e1a28255e9080889fcb4c.tar.xz
doc: use correct units in df | numfmt example
* src/numfmt.c (usage): Don't scale output from df so that numfmt outputs the correct values.
Diffstat (limited to 'src')
-rw-r--r--src/numfmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/numfmt.c b/src/numfmt.c
index 58520c26e..c03329f04 100644
--- a/src/numfmt.c
+++ b/src/numfmt.c
@@ -960,8 +960,8 @@ Examples:\n\
-> \"1000\"\n\
$ echo 1K | %s --from=iec\n\
-> \"1024\"\n\
- $ df | %s --header --field 2 --to=si\n\
- $ ls -l | %s --header --field 5 --to=iec\n\
+ $ df -B1 | %s --header --field 2 --to=si\n\
+ $ ls -l | %s --header --field 5 --to=iec\n\
$ ls -lh | %s --header --field 5 --from=iec --padding=10\n\
$ ls -lh | %s --header --field 5 --from=iec --format %%10f\n"),
program_name, program_name, program_name,