new - show cores, public ipv4 and ipv6

logical Processors
you can see them on first page
This commit is contained in:
MHSanaei
2023-05-25 03:11:09 +03:30
parent 76f70ce1e9
commit 896cc5386c
7 changed files with 135 additions and 40 deletions

View File

@@ -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";