add windows packetLostRate

This commit is contained in:
ubuntu
2018-08-28 17:13:26 +08:00
parent 00e71b08c4
commit 35f363edf8
2 changed files with 50 additions and 3 deletions

View File

@@ -162,6 +162,7 @@ def _ping_thread(host, mark):
lostCount = 0
allCount = 0
startTime = time.time()
output.readline()
while True:
if 'ttl' not in output.readline():
lostCount += 1