From 8f1a418fd03e1ab2e90793c6d2fd2d05d9d03358 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 3 Oct 2012 17:08:07 -0400 Subject: [PATCH] Slightly increase the leniency for forwarding 'old' messages. There are non-buggy situations when it can be higher than 5 seconds. (imported from commit cc63c0bdb10a201cc30c17854e5a506bac7e68d7) --- zephyr_mirror.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr_mirror.py b/zephyr_mirror.py index 4ab9df7..5d673ae 100644 --- a/zephyr_mirror.py +++ b/zephyr_mirror.py @@ -245,7 +245,7 @@ def forward_to_zephyr(message): def maybe_forward_to_zephyr(message): if message["sender_email"] == os.environ["USER"] + "@mit.edu": - if float(message["timestamp"]) < float(datetime.datetime.now().strftime("%s")) - 5: + if float(message["timestamp"]) < float(datetime.datetime.now().strftime("%s")) - 15: print "Alert! Out of order message!", message["timestamp"], datetime.datetime.now().strftime("%s") return forward_to_zephyr(message)