From e31ac03f6f03303b6ab0212177a1c36e8c4927a7 Mon Sep 17 00:00:00 2001 From: mickael Date: Mon, 7 Jan 2019 22:09:22 +0000 Subject: [PATCH] avoid double "checktime" usage --- config.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config.py b/config.py index 15f450d..78d58b8 100644 --- a/config.py +++ b/config.py @@ -4,7 +4,7 @@ _loaded = False def load(): 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 parser = SafeConfigParser() @@ -22,9 +22,8 @@ def load(): use_ssl = parser.getboolean('watcherd', 'use_ssl') global watchd_debug watchd_debug = parser.getboolean('watcherd', 'debug') - #url_maxfail = parser.get('proxyfind', 'maxfail') - checktime = parser.get('proxyfind', 'checktime') - perfail_checktime = parser.get('proxyfind', 'perfail_checktime') + url_checktime = parser.get('proxyfind', 'checktime') + url_perfail_checktime = parser.get('proxyfind', 'perfail_checktime') # allow overriding select items from the commandline import argparse