diff --git a/clients/client-linux.py b/clients/client-linux.py index a9d5dc2..5bb246b 100755 --- a/clients/client-linux.py +++ b/clients/client-linux.py @@ -3,7 +3,7 @@ # Update by : https://github.com/cppla/ServerStatus, Update date: 20220530 # 版本:1.0.3, 支持Python版本:2.7 to 3.10 # 支持操作系统: Linux, OSX, FreeBSD, OpenBSD and NetBSD, both 32-bit and 64-bit architectures -# ONLINE_PACKET_HISTORY_LEN, 探测间隔120s,记录24小时在线率(720);探测时间300s,记录24小时(288);探测间隔60s,记录7天(10080) +# ONLINE_PACKET_HISTORY_LEN, 探测间隔1200s,记录24小时在线率(72);探测时间300s,记录24小时(288);探测间隔60s,记录7天(10080) # 说明: 默认情况下修改server和user就可以了。丢包率监测方向可以自定义,例如:CU = "www.facebook.com"。 SERVER = "127.0.0.1" @@ -18,7 +18,7 @@ CM = "cm.tz.cloudcpp.com" PROBEPORT = 80 PROBE_PROTOCOL_PREFER = "ipv4" # ipv4, ipv6 PING_PACKET_HISTORY_LEN = 100 -ONLINE_PACKET_HISTORY_LEN = 288 +ONLINE_PACKET_HISTORY_LEN = 72 INTERVAL = 1 import socket diff --git a/clients/client-psutil.py b/clients/client-psutil.py index d303809..972586f 100755 --- a/clients/client-psutil.py +++ b/clients/client-psutil.py @@ -4,7 +4,7 @@ # 依赖于psutil跨平台库 # 版本:1.0.3, 支持Python版本:2.7 to 3.10 # 支持操作系统: Linux, Windows, OSX, Sun Solaris, FreeBSD, OpenBSD and NetBSD, both 32-bit and 64-bit architectures -# ONLINE_PACKET_HISTORY_LEN, 探测间隔120s,记录24小时在线率(720);探测时间300s,记录24小时(288);探测间隔60s,记录7天(10080) +# ONLINE_PACKET_HISTORY_LEN, 探测间隔1200s,记录24小时在线率(72);探测时间300s,记录24小时(288);探测间隔60s,记录7天(10080) # 说明: 默认情况下修改server和user就可以了。丢包率监测方向可以自定义,例如:CU = "www.facebook.com"。 SERVER = "127.0.0.1" @@ -19,7 +19,7 @@ CM = "cm.tz.cloudcpp.com" PROBEPORT = 80 PROBE_PROTOCOL_PREFER = "ipv4" # ipv4, ipv6 PING_PACKET_HISTORY_LEN = 100 -ONLINE_PACKET_HISTORY_LEN = 288 +ONLINE_PACKET_HISTORY_LEN = 72 INTERVAL = 1 import socket diff --git a/server/config.json b/server/config.json index aa37dd5..da2834e 100644 --- a/server/config.json +++ b/server/config.json @@ -42,13 +42,13 @@ { "name": "baidu", "host": "https://www.baidu.com", - "interval": 300, + "interval": 1200, "type": "https" }, { "name": "114", "host": "114.114.114.114:53", - "interval": 300, + "interval": 1200, "type": "tcp" } ], diff --git a/web/css/dark.css b/web/css/dark.css index 1110350..0320532 100644 --- a/web/css/dark.css +++ b/web/css/dark.css @@ -108,7 +108,7 @@ tr.odd.expandRow:hover { } #traffic, #network { - width: 165px; + width: 170px; } #cpu, #ram, #hdd { @@ -129,7 +129,7 @@ tr.odd.expandRow:hover { padding: 0; } #traffic, #network { - width: 115px; + width: 120px; } #type, #location, #uptime, #ping { display: none; @@ -146,7 +146,7 @@ tr.odd.expandRow:hover { padding: 0; } #traffic, #network { - width: 115px; + width: 120px; } #month_traffic, #type, #location, #uptime, #ping { display: none; @@ -163,7 +163,7 @@ tr.odd.expandRow:hover { padding: 0; } #network { - width: 115px; + width: 120px; } #month_traffic, #type, #location, #uptime, #traffic, #ping { display: none; diff --git a/web/css/light.css b/web/css/light.css index b2ca028..e83a1d3 100644 --- a/web/css/light.css +++ b/web/css/light.css @@ -89,7 +89,7 @@ tr.odd.expandRow:hover { } #traffic, #network { - width: 165px; + width: 170px; } #cpu, #ram, #hdd { @@ -110,7 +110,7 @@ tr.odd.expandRow:hover { padding: 0; } #traffic, #network { - width: 115px; + width: 120px; } #type, #location, #uptime, #ping { display: none; @@ -127,7 +127,7 @@ tr.odd.expandRow:hover { padding: 0; } #traffic, #network { - width: 115px; + width: 120px; } #month_traffic, #type, #location, #uptime, #ping { display: none; @@ -144,7 +144,7 @@ tr.odd.expandRow:hover { padding: 0; } #network { - width: 115px; + width: 120px; } #month_traffic, #type, #location, #uptime, #traffic, #ping { display: none;