aboutsummaryrefslogtreecommitdiff
path: root/samplejobs
diff options
context:
space:
mode:
authorTom Ritter <tom@ritter.vg>2016-02-02 16:31:58 -0500
committerTom Ritter <tom@ritter.vg>2016-02-02 16:31:58 -0500
commit19db484e2b851d9a944e005e47158c4d8cd82b81 (patch)
treeaacf9b0214d733cb8d717349bd1d86ad3bf37c83 /samplejobs
parent877d48b85af0e41f30fb5918085c5dc717ecbb2c (diff)
It's actually not uncommon for the bwauth file to be more than 2 hours old, but 3 hours is pushing it.
Diffstat (limited to 'samplejobs')
-rwxr-xr-xsamplejobs/BWAuthChecker.py4
1 files 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"