From: Leandro Lucarella Date: Mon, 26 Nov 2007 04:14:53 +0000 (-0300) Subject: Bugfix: use default_secs seconds as interval if not provided in commandline. X-Git-Url: https://git.llucax.com/personal/ion3-config.git/commitdiff_plain/55300ef8d84baea1fb484ee9854b327a067750b4 Bugfix: use default_secs seconds as interval if not provided in commandline. --- 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])