Browse Source

Change of number of decimal places to 1

Change of number of decimal places to 1 in speed and size values.
adaptive-webui-19844
buinsky 10 years ago
parent
commit
2275735b81
  1. 5
      src/webui/www/public/scripts/misc.js

5
src/webui/www/public/scripts/misc.js

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

Loading…
Cancel
Save