From d27bc0ab5bcef72f972b70540f2b0a16f983eb58 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Mon, 27 Dec 2021 00:31:36 -0700 Subject: [PATCH] [NO TESTS] WIP --- projects/aloe/src/python/aloe/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/aloe/src/python/aloe/__main__.py b/projects/aloe/src/python/aloe/__main__.py index 18d8b35..f70bbad 100644 --- a/projects/aloe/src/python/aloe/__main__.py +++ b/projects/aloe/src/python/aloe/__main__.py @@ -144,7 +144,7 @@ def retrace(shutdown, q, opts, hl, hosts): with hl: if address not in hosts: log.info(f"Monitoring {address}...") - monitor = MonitoredHost(address, timedelta(seconds=2)) + monitor = MonitoredHost(address, timedelta(seconds=4)) hosts[address] = (distance, monitor) threads[address] = t = Thread(target=monitor, args=(shutdown, q)) t.start() @@ -165,7 +165,7 @@ def retrace(shutdown, q, opts, hl, hosts): def render(shutdown, q, stdscr, hl, hosts): dt = timedelta(minutes=30) - with open("incidents.txt", "w") as fp: + with open("incidents.txt", "a") as fp: incident = False while not shutdown.is_set(): rows, cols = stdscr.getmaxyx()