1 parent 4a07e9b commit 0e447a9Copy full SHA for 0e447a9
1 file changed
logger.py
@@ -54,7 +54,7 @@ def browse_file(self):
54
self.logfile.set(filedialog.asksaveasfilename(defaultextension=".txt", filetypes=[("Text files", "*.txt"), ("All files", "*.*")]))
55
56
def ping_host(self):
57
- return subprocess.call(["ping", "-c", "1", self.target.get()], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) == 0
+ return subprocess.call(["ping", "-n", "1", self.target.get()], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) == 0
58
59
def log_outage(self, start_time, end_time):
60
with open(self.logfile.get(), "a") as f:
0 commit comments