From 922b630881f4abbf993fe91f279db542b124d78e Mon Sep 17 00:00:00 2001 From: mickael Date: Sun, 6 Jan 2019 00:51:20 +0000 Subject: [PATCH] print number of defined threads --- proxywatchd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxywatchd.py b/proxywatchd.py index e7d233e..6fdd410 100644 --- a/proxywatchd.py +++ b/proxywatchd.py @@ -221,7 +221,7 @@ class Proxywatchd(): if self.threads[random.choice(xrange(len(self.threads)))].jobcount() == 0: self.prepare_jobs() if len(self.jobs): - _log("watchd main: handing out %d jobs"%len(self.jobs)) + _log("watchd main: handing out %d jobs and %d thread(s)"% (len(self.jobs), config.watchd_threads)) jpt = len(self.jobs)/config.watchd_threads if len(self.jobs)/float(config.watchd_threads) - jpt > 0.0: jpt += 1 for tid in range(config.watchd_threads):