avoid double "checktime" usage
This commit is contained in:
@@ -4,7 +4,7 @@ _loaded = False
|
|||||||
|
|
||||||
def load():
|
def load():
|
||||||
if _loaded: return
|
if _loaded: return
|
||||||
global database, maxfail, search, torhosts, watchd_threads, checktime, timeout, read_timeout, submit_after, use_ssl, checktime, perfail_checktime
|
global database, maxfail, search, torhosts, watchd_threads, checktime, timeout, read_timeout, submit_after, use_ssl, url_checktime, url_perfail_checktime
|
||||||
|
|
||||||
## read the config files
|
## read the config files
|
||||||
parser = SafeConfigParser()
|
parser = SafeConfigParser()
|
||||||
@@ -22,9 +22,8 @@ def load():
|
|||||||
use_ssl = parser.getboolean('watcherd', 'use_ssl')
|
use_ssl = parser.getboolean('watcherd', 'use_ssl')
|
||||||
global watchd_debug
|
global watchd_debug
|
||||||
watchd_debug = parser.getboolean('watcherd', 'debug')
|
watchd_debug = parser.getboolean('watcherd', 'debug')
|
||||||
#url_maxfail = parser.get('proxyfind', 'maxfail')
|
url_checktime = parser.get('proxyfind', 'checktime')
|
||||||
checktime = parser.get('proxyfind', 'checktime')
|
url_perfail_checktime = parser.get('proxyfind', 'perfail_checktime')
|
||||||
perfail_checktime = parser.get('proxyfind', 'perfail_checktime')
|
|
||||||
|
|
||||||
# allow overriding select items from the commandline
|
# allow overriding select items from the commandline
|
||||||
import argparse
|
import argparse
|
||||||
|
|||||||
Reference in New Issue
Block a user