mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
update stats in rethinkdb only every 2.0 seconds instead of every 0.5
This commit is contained in:
parent
734b2f5396
commit
fb58244c4f
@ -160,7 +160,7 @@ class RethinkStatsDb:
|
||||
self._batch = {}
|
||||
|
||||
if not self._stop.is_set():
|
||||
self._timer = threading.Timer(0.5, self._update_batch)
|
||||
self._timer = threading.Timer(2.0, self._update_batch)
|
||||
self._timer.name = "RethinkStats-batch-update-timer-%s" % datetime.datetime.utcnow().isoformat()
|
||||
self._timer.start()
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user