Skip to content

Commit a8b9b2d

Browse files
committed
默认一天在线率
1 parent dc38689 commit a8b9b2d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

clients/client-linux.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Update by : https://github.com/cppla/ServerStatus, Update date: 20220530
44
# 版本:1.0.3, 支持Python版本:2.7 to 3.10
55
# 支持操作系统: Linux, OSX, FreeBSD, OpenBSD and NetBSD, both 32-bit and 64-bit architectures
6-
# ONLINE_PACKET_HISTORY_LEN, 探测间隔60s,记录24小时在线率(1440);探测间隔60s,记录7天(10080);探测时间30s,记录24小时(2880
6+
# ONLINE_PACKET_HISTORY_LEN, 探测间隔120s,记录24小时在线率(720);探测时间180s,记录24小时(480);探测间隔60s,记录7天(10080
77
# 说明: 默认情况下修改server和user就可以了。丢包率监测方向可以自定义,例如:CU = "www.facebook.com"。
88

99
SERVER = "127.0.0.1"
@@ -18,7 +18,7 @@
1818
PROBEPORT = 80
1919
PROBE_PROTOCOL_PREFER = "ipv4" # ipv4, ipv6
2020
PING_PACKET_HISTORY_LEN = 100
21-
ONLINE_PACKET_HISTORY_LEN = 10080
21+
ONLINE_PACKET_HISTORY_LEN = 480
2222
INTERVAL = 1
2323

2424
import socket

clients/client-psutil.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# 依赖于psutil跨平台库
55
# 版本:1.0.3, 支持Python版本:2.7 to 3.10
66
# 支持操作系统: Linux, Windows, OSX, Sun Solaris, FreeBSD, OpenBSD and NetBSD, both 32-bit and 64-bit architectures
7-
# ONLINE_PACKET_HISTORY_LEN, 探测间隔60s,记录24小时在线率(1440);探测时间60s,记录7天在线率(10080);探测时间30s,记录24小时(2880
7+
# ONLINE_PACKET_HISTORY_LEN, 探测间隔120s,记录24小时在线率(720);探测时间180s,记录24小时(480);探测间隔60s,记录7天(10080
88
# 说明: 默认情况下修改server和user就可以了。丢包率监测方向可以自定义,例如:CU = "www.facebook.com"。
99

1010
SERVER = "127.0.0.1"
@@ -19,7 +19,7 @@
1919
PROBEPORT = 80
2020
PROBE_PROTOCOL_PREFER = "ipv4" # ipv4, ipv6
2121
PING_PACKET_HISTORY_LEN = 100
22-
ONLINE_PACKET_HISTORY_LEN = 10080
22+
ONLINE_PACKET_HISTORY_LEN = 480
2323
INTERVAL = 1
2424

2525
import socket

server/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@
4242
{
4343
"name": "baidu",
4444
"host": "https://www.baidu.com",
45-
"interval": 60,
45+
"interval": 180,
4646
"type": "https"
4747
},
4848
{
4949
"name": "114",
5050
"host": "114.114.114.114:53",
51-
"interval": 60,
51+
"interval": 180,
5252
"type": "tcp"
5353
}
5454
],

0 commit comments

Comments
 (0)