mirror of
https://github.com//cppla/ServerStatus
synced 2025-07-05 17:05:59 +08:00
update client
This commit is contained in:
parent
1aa1f9961a
commit
b2141cd93c
@ -168,7 +168,10 @@ def _ping_thread(host, mark):
|
|||||||
startTime = time.time()
|
startTime = time.time()
|
||||||
output.readline()
|
output.readline()
|
||||||
while True:
|
while True:
|
||||||
if 'ttl' not in output.readline():
|
buffer = output.readline()
|
||||||
|
if len(buffer) == 0:
|
||||||
|
return
|
||||||
|
if 'ttl' not in buffer:
|
||||||
lostCount += 1
|
lostCount += 1
|
||||||
allCount += 1
|
allCount += 1
|
||||||
# 防止吓人
|
# 防止吓人
|
||||||
|
@ -137,7 +137,10 @@ def _ping_thread(host, mark):
|
|||||||
output.readline()
|
output.readline()
|
||||||
output.readline()
|
output.readline()
|
||||||
while True:
|
while True:
|
||||||
if 'TTL' not in output.readline().upper():
|
buffer = output.readline()
|
||||||
|
if len(buffer) == 0:
|
||||||
|
return
|
||||||
|
if 'TTL' not in buffer.upper():
|
||||||
lostCount += 1
|
lostCount += 1
|
||||||
allCount += 1
|
allCount += 1
|
||||||
# 防止吓人
|
# 防止吓人
|
||||||
|
Loading…
x
Reference in New Issue
Block a user