Fix IEC / SI binary prefixes (Ki, Mi, Gi, etc) production by humanize_number(3)

PR:		bin/171487
Submitted by:	matthew
MFC after:	1 week
This commit is contained in:
bapt 2012-09-12 11:41:03 +00:00
parent fcd6b4b1cb
commit 79c15f9ce3

View File

@ -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)