Commit bf456972 authored by Christian Hesse's avatar Christian Hesse
Browse files

kilobytes is the smallest unit and never has precision


Signed-off-by: default avatarChristian Hesse <mail@eworm.de>
parent a859e920
......@@ -157,6 +157,9 @@ int Meter_humanUnit(char* buffer, unsigned long int value, int size) {
++prefix;
}
if (*prefix == 'K')
precision = 0;
for (; precision > 0; precision--) {
powj *= 10;
if (value / powi < powj)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment