diff --git a/proxywatchd.py b/proxywatchd.py index 7562657..a8145a9 100644 --- a/proxywatchd.py +++ b/proxywatchd.py @@ -136,6 +136,7 @@ class Proxywatchd(): self.mysqlite.close() self.mysqlite = None + self.submit_after = 200 # number of collected jobs before writing db self.echoise = time.time() - 3600; self.ticks = time.time() - 3600; self.jobs = [] @@ -199,7 +200,7 @@ class Proxywatchd(): self.collect_work() - if len(self.collected) > 50: + if len(self.collected) > self.submit_after: self.submit_collected() time.sleep(1)