diff options
author | bapt <bapt@FreeBSD.org> | 2012-09-12 11:41:03 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-09-12 11:41:03 +0000 |
commit | 79c15f9ce38820ed21ddefdf5d13b559194d2ec7 (patch) | |
tree | 0f6070b7921a89f0425849fc4e2263b0f440a7ad /lib/libutil | |
parent | fcd6b4b1cb0bd22d24627b7784e9ef476f49616a (diff) | |
download | FreeBSD-src-79c15f9ce38820ed21ddefdf5d13b559194d2ec7.zip FreeBSD-src-79c15f9ce38820ed21ddefdf5d13b559194d2ec7.tar.gz |
Fix IEC / SI binary prefixes (Ki, Mi, Gi, etc) production by humanize_number(3)
PR: bin/171487
Submitted by: matthew
MFC after: 1 week
Diffstat (limited to 'lib/libutil')
-rw-r--r-- | lib/libutil/humanize_number.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libutil/humanize_number.c b/lib/libutil/humanize_number.c index 024bc6b..1cad1cf 100644 --- a/lib/libutil/humanize_number.c +++ b/lib/libutil/humanize_number.c @@ -76,7 +76,7 @@ humanize_number(char *buf, size_t len, int64_t quotient, if (flags & HN_B) prefixes = "B\0\0Ki\0Mi\0Gi\0Ti\0Pi\0Ei"; else - prefixes = "\0\0Ki\0Mi\0Gi\0Ti\0Pi\0Ei"; + prefixes = "\0\0\0Ki\0Mi\0Gi\0Ti\0Pi\0Ei"; } else { baselen = 1; if (flags & HN_DIVISOR_1000) |