Compare commits
2 Commits
a81b56eaf7
...
eaf3e68fa0
| Author | SHA1 | Date | |
|---|---|---|---|
| eaf3e68fa0 | |||
| aab45796ae |
@@ -26,7 +26,7 @@ while(True):
|
|||||||
response = sp.getstatusoutput(f"ping -c 1 {ip}")
|
response = sp.getstatusoutput(f"ping -c 1 {ip}")
|
||||||
print(response)
|
print(response)
|
||||||
if(response[0]!=0):
|
if(response[0]!=0):
|
||||||
time=2000
|
myresp=2000
|
||||||
else:
|
else:
|
||||||
myresp = response[1].split("\n")[1].split(' ')[6].split('=')[1]
|
myresp = response[1].split("\n")[1].split(' ')[6].split('=')[1]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user