Skip to content

Commit 6ab046b

Browse files
committed
update
1 parent 94708c5 commit 6ab046b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clients/client-linux.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 = 1440
21+
ONLINE_PACKET_HISTORY_LEN = 10080
2222
INTERVAL = 1
2323

2424
import socket
@@ -520,7 +520,7 @@ def byte_str(object):
520520
array['tcp'], array['udp'], array['process'], array['thread'] = tupd()
521521
array['io_read'] = diskIO.get("read")
522522
array['io_write'] = diskIO.get("write")
523-
array['custom'] = "<br>".join(f"<code>{k}</code>\\t解析: {v['dns_time']}\\t连接: {v['connect_time']}\\t下载: {v['download_time']}\\t在线率: <code>{v['online_rate']*100:.2f}%</code>" for k, v in monitorServer.items())
523+
array['custom'] = "<br>".join(f"{k}\\t解析: {v['dns_time']}\\t连接: {v['connect_time']}\\t下载: {v['download_time']}\\t在线率: <code>{v['online_rate']*100:.1f}%</code>" for k, v in monitorServer.items())
524524
s.send(byte_str("update " + json.dumps(array) + "\n"))
525525
except KeyboardInterrupt:
526526
raise

clients/client-psutil.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 = 1440
22+
ONLINE_PACKET_HISTORY_LEN = 10080
2323
INTERVAL = 1
2424

2525
import socket
@@ -510,7 +510,7 @@ def byte_str(object):
510510
array['tcp'], array['udp'], array['process'], array['thread'] = tupd()
511511
array['io_read'] = diskIO.get("read")
512512
array['io_write'] = diskIO.get("write")
513-
array['custom'] = "<br>".join(f"<code>{k}</code>\\t解析: {v['dns_time']}\\t连接: {v['connect_time']}\\t下载: {v['download_time']}\\t在线率: <code>{v['online_rate']*100:.2f}%</code>" for k, v in monitorServer.items())
513+
array['custom'] = "<br>".join(f"{k}\\t解析: {v['dns_time']}\\t连接: {v['connect_time']}\\t下载: {v['download_time']}\\t在线率: <code>{v['online_rate']*100:.2f}%</code>" for k, v in monitorServer.items())
514514
s.send(byte_str("update " + json.dumps(array) + "\n"))
515515
except KeyboardInterrupt:
516516
raise

0 commit comments

Comments
 (0)