mirror of https://github.com/cppla/ServerStatus
				
				
				
			update client
							parent
							
								
									1aa1f9961a
								
							
						
					
					
						commit
						b2141cd93c
					
				|  | @ -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 | ||||
|         # 防止吓人 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 ubuntu
						ubuntu