From 55300ef8d84baea1fb484ee9854b327a067750b4 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 26 Nov 2007 01:14:53 -0300 Subject: [PATCH] Bugfix: use default_secs seconds as interval if not provided in commandline. --- maildir_status_server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maildir_status_server.py b/maildir_status_server.py index 3b7cef9..9ff1c87 100755 --- a/maildir_status_server.py +++ b/maildir_status_server.py @@ -15,6 +15,8 @@ yes_template = '%(name)s (%(messages)s)' join_str = ' ' default_secs = 30 +secs = default_secs + if len(sys.argv) > 1: secs = int(sys.argv[1]) -- 2.43.0