From 19db484e2b851d9a944e005e47158c4d8cd82b81 Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Tue, 2 Feb 2016 16:31:58 -0500 Subject: It's actually not uncommon for the bwauth file to be more than 2 hours old, but 3 hours is pushing it. --- samplejobs/BWAuthChecker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samplejobs/BWAuthChecker.py b/samplejobs/BWAuthChecker.py index 2b88e95..de3a86e 100755 --- a/samplejobs/BWAuthChecker.py +++ b/samplejobs/BWAuthChecker.py @@ -26,8 +26,8 @@ class BWAuthChecker(JobBase.JobBase): else: then = datetime.datetime.utcfromtimestamp(int(lines[0])) now = datetime.datetime.utcfromtimestamp(time.time()) - if now - then > datetime.timedelta(hours=2): - body = "The bandwidth file is more than 2 hours old.\n" + if now - then > datetime.timedelta(hours=3): + body = "The bandwidth file is more than 3 hours old.\n" body += str((now-then).seconds / 60) + " minutes old.\n" elif len(lines) < 8800: body = "The bandwidth file has a low number of relays: " + str(len(lines)) + "\n" -- cgit v1.2.3