diff --git a/web/css/dark.css b/web/css/dark.css index 638ba53..cfe6d03 100644 --- a/web/css/dark.css +++ b/web/css/dark.css @@ -107,13 +107,13 @@ tr.odd.expandRow:hover { max-width: 95px; } -#network { - min-width: 110px; +#traffic, #network { + width: 158px; } #cpu, #ram, #hdd { min-width: 45px; - max-width: 90px; + max-width: 68px; } #ping { @@ -128,7 +128,9 @@ tr.odd.expandRow:hover { .content { padding: 0; } - + #traffic, #network { + width: 115px; + } #type, #location, #uptime, #ping { display: none; visibility: hidden; @@ -143,7 +145,9 @@ tr.odd.expandRow:hover { .content { padding: 0; } - + #traffic, #network { + width: 115px; + } #month_traffic, #type, #location, #uptime, #ping { display: none; visibility: hidden; @@ -158,7 +162,9 @@ tr.odd.expandRow:hover { .content { padding: 0; } - + #network { + width: 115px; + } #month_traffic, #type, #location, #uptime, #traffic, #ping { display: none; visibility: hidden; diff --git a/web/css/light.css b/web/css/light.css index 43ee347..d30607b 100644 --- a/web/css/light.css +++ b/web/css/light.css @@ -88,13 +88,13 @@ tr.odd.expandRow:hover { max-width: 95px; } -#network { - min-width: 110px; +#traffic, #network { + width: 158px; } #cpu, #ram, #hdd { min-width: 45px; - max-width: 90px; + max-width: 68px; } #ping { @@ -109,7 +109,9 @@ tr.odd.expandRow:hover { .content { padding: 0; } - + #traffic, #network { + width: 115px; + } #type, #location, #uptime, #ping { display: none; visibility: hidden; @@ -124,7 +126,9 @@ tr.odd.expandRow:hover { .content { padding: 0; } - + #traffic, #network { + width: 115px; + } #month_traffic, #type, #location, #uptime, #ping { display: none; visibility: hidden; @@ -139,7 +143,9 @@ tr.odd.expandRow:hover { .content { padding: 0; } - + #network { + width: 115px; + } #month_traffic, #type, #location, #uptime, #traffic, #ping { display: none; visibility: hidden; diff --git a/web/js/serverstatus.js b/web/js/serverstatus.js index ce8d32b..05052c4 100644 --- a/web/js/serverstatus.js +++ b/web/js/serverstatus.js @@ -289,8 +289,9 @@ function updateTime() { uptime(); updateTime(); -setInterval(uptime, 2000); -setInterval(updateTime, 2000); +// 降低改值,可以减少cpu占用 +setInterval(uptime, 1000); +setInterval(updateTime, 1000); // styleswitcher.js function setActiveStyleSheet(title, cookie = false) {