update client

This commit is contained in:
ubuntu 2018-08-29 17:00:21 +08:00
parent 1aa1f9961a
commit b2141cd93c
2 changed files with 8 additions and 2 deletions

@ -168,7 +168,10 @@ def _ping_thread(host, mark):
startTime = time.time()
output.readline()
while True:
if 'ttl' not in output.readline():
buffer = output.readline()
if len(buffer) == 0:
return
if 'ttl' not in buffer:
lostCount += 1
allCount += 1
# 防止吓人

@ -137,7 +137,10 @@ def _ping_thread(host, mark):
output.readline()
output.readline()
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
allCount += 1
# 防止吓人