diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-25 02:41:09 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-25 02:41:09 +0300 |
| commit | 896cc5386c53673a25b33d7917cf952c123a3db1 (patch) | |
| tree | 67074066fe105406453e2628533a1b116f2ddf03 /web/assets | |
| parent | 76f70ce1e93ccc977907acafdafbef6b14dc79e7 (diff) | |
new - show cores, public ipv4 and ipv6
logical Processors
you can see them on first page
Diffstat (limited to 'web/assets')
| -rw-r--r-- | web/assets/js/util/common.js | 4 |
1 files changed, 3 insertions, 1 deletions
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"; |
