We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bdc6d9 commit 2ddf71cCopy full SHA for 2ddf71c
mirrorscript-v2.py
@@ -77,7 +77,7 @@ def run(self):
77
if "100% packet loss" in p[0].strip():
78
average = "[!] Unable to check " + self.hostname + " latency, potentially host block ICMP request."
79
else:
80
- average = p[0].strip().splitlines()[7].split('=')[1].split('/')[1]
+ average = p[0].strip().splitlines()[-1].split('=')[1].split('/')[1]
81
mirrors[self.hostname] = str(str(average).zfill(7))
82
except Exception as e:
83
if not ask("\t[!] Something went wrong. would you like to try again [y] or [n].",'y'):
0 commit comments