From fb58244c4fa988da185dc7c920379a4e7ce901a2 Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Thu, 12 Nov 2015 00:54:29 +0000 Subject: [PATCH] update stats in rethinkdb only every 2.0 seconds instead of every 0.5 --- warcprox/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warcprox/stats.py b/warcprox/stats.py index 316531d..a6a8298 100644 --- a/warcprox/stats.py +++ b/warcprox/stats.py @@ -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: