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:
parent
fcd6b4b1cb
commit
79c15f9ce3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user