[mirrorbrain-commits] r8333 - /trunk/mirrorprobe/mirrorprobe.py

From: <poeml_at_mirrorbrain.org>
Date: Wed, 22 Jan 2014 20:37:46 -0000
Author: poeml
Date: Wed Jan 22 21:37:45 2014
New Revision: 8333

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8333&view=rev
Log:
mirrorprobe: 
- in the --help output, display the default value for mirrorprobe's network timeout

Modified:
    trunk/mirrorprobe/mirrorprobe.py

Modified: trunk/mirrorprobe/mirrorprobe.py
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mirrorprobe/mirrorprobe.py?rev=8333&r1=8332&r2=8333&view=diff
==============================================================================
--- trunk/mirrorprobe/mirrorprobe.py	(original)
+++ trunk/mirrorprobe/mirrorprobe.py	Wed Jan 22 21:37:45 2014
_at_@ -29,6 +29,7 @@
 from sqlobject.sqlbuilder import AND
 
 USER_AGENT = 'MirrorBrain Probe (see http://mirrorbrain.org/probe_info)'
+DEFAULT_TIMEOUT = 20
 
 def reenable(mirror):
     comment = mirror.comment or ''
_at_@ -199,8 +200,8 @@
 
     parser.add_option("-t", "--timeout",
                       dest="timeout",
-                      default=20,
-                      help="Timeout in seconds",
+                      default=DEFAULT_TIMEOUT,
+                      help="Timeout in seconds (default: %ss)" % DEFAULT_TIMEOUT,
                       metavar="TIMEOUT")
 
     parser.add_option("-n", "--no-run",




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Wed Jan 22 2014 - 20:37:48 GMT

This archive was generated by hypermail 2.3.0 : Wed Jan 22 2014 - 20:47:04 GMT