Change of number of decimal places to 1

Change of number of decimal places to 1 in speed and size values.
This commit is contained in:
buinsky 2014-11-23 16:53:41 +03:00
parent b2876b7f66
commit 2275735b81

View file

@ -16,10 +16,7 @@ function friendlyUnit(value, isSpeed) {
while (value >= 1024. && i++ < 6)
value /= 1024.;
var ret;
if (i == 0)
ret = value.toFixed(2) + " " + units[0];
else
ret = value.toFixed(2) + " " + units[i];
ret = value.toFixed(1) + " " + units[i];
if (isSpeed)
ret += "_(/s)";
return ret;