From 896cc5386c53673a25b33d7917cf952c123a3db1 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Thu, 25 May 2023 03:11:09 +0330 Subject: new - show cores, public ipv4 and ipv6 logical Processors you can see them on first page --- web/assets/js/util/common.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'web/assets') diff --git a/web/assets/js/util/common.js b/web/assets/js/util/common.js index 6dad047d..ab642849 100644 --- a/web/assets/js/util/common.js +++ b/web/assets/js/util/common.js @@ -5,7 +5,9 @@ const ONE_TB = ONE_GB * 1024; const ONE_PB = ONE_TB * 1024; function sizeFormat(size) { - if (size < ONE_KB) { + if (size < 0) { + return "0 B"; + } else if (size < ONE_KB) { return size.toFixed(0) + " B"; } else if (size < ONE_MB) { return (size / ONE_KB).toFixed(2) + " KB"; -- cgit v1.2.3