
commit 154dfeeaf205a38a903d55a41b9c5b27fd748696 Author: Christian Fromme <kaner@strace.org> Date: Mon Jan 28 09:08:37 2013 +0100 Apply patch by Matt Kraai (Thanks!) that fixes #8071: - Display "node down for 0 hours" instead of "node down for 0 hour" --- weather/weatherapp/emails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weather/weatherapp/emails.py b/weather/weatherapp/emails.py index af4121f..39dc71b 100644 --- a/weather/weatherapp/emails.py +++ b/weather/weatherapp/emails.py @@ -275,7 +275,7 @@ def node_down_tuple(recipient, fingerprint, name, grace_pd, unsubs_auth, subj = _SUBJECT_HEADER + _NODE_DOWN_SUBJ sender = _SENDER num_hours = str(grace_pd) + " hour" - if grace_pd > 1: + if grace_pd != 1: num_hours += "s" msg = _NODE_DOWN_MAIL % (router, num_hours) msg = _add_generic_footer(msg, unsubs_auth, pref_auth)