From 6098f0fb1a8fe0ba86fe956034f31d0fb13d6dd3 Mon Sep 17 00:00:00 2001
From: cppla <i@cpp.la>
Date: Sun, 18 Aug 2024 13:00:45 +0800
Subject: [PATCH] commit new css by ai

---
 web/css/dark.css       | 18 ++++++++++++------
 web/css/light.css      | 18 ++++++++++++------
 web/js/serverstatus.js |  5 +++--
 3 files changed, 27 insertions(+), 14 deletions(-)

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) {