make "submit_after" a configuratble option (config.ini)
This commit is contained in:
@@ -4,7 +4,7 @@ _loaded = False
|
||||
|
||||
def load():
|
||||
if _loaded: return
|
||||
global database, maxfail, search, torhosts, watchd_threads, checktime, timeout, read_timeout
|
||||
global database, maxfail, search, torhosts, watchd_threads, checktime, timeout, read_timeout, submit_after
|
||||
|
||||
## read the config files
|
||||
parser = SafeConfigParser()
|
||||
@@ -18,6 +18,7 @@ def load():
|
||||
torhosts = [ str(i).strip() for i in parser.get('global', 'tor_host').split(',') ]
|
||||
watchd_threads = parser.getint('watcherd', 'threads')
|
||||
timeout = parser.getint('watcherd', 'timeout')
|
||||
submit_after = parser.getint('watcherd', 'submit_after')
|
||||
|
||||
# allow overriding select items from the commandline
|
||||
import argparse
|
||||
|
||||
Reference in New Issue
Block a user