aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/nms.js')
-rw-r--r--web/js/nms.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/js/nms.js b/web/js/nms.js
index 0b9fc73..36ff97f 100644
--- a/web/js/nms.js
+++ b/web/js/nms.js
@@ -140,6 +140,8 @@ function byteCount(bytes,precision) {
bytes = bytes / 1024;
i++;
}
+ if (i == 0)
+ return bytes;
return bytes.toFixed(precision) + units[i];
}