From 416f50b6f78328878e950d7bd8dd902c52d35b13 Mon Sep 17 00:00:00 2001 From: Zack Dever Date: Tue, 3 May 2016 17:43:50 -0700 Subject: small bug fix in Sensor pulling in this small bug fix from https://github.com/apache/kafka/pull/1265/files#diff-8736b7fd8ad077ea55ea2a8ad61285faR99 --- kafka/metrics/stats/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kafka/metrics/stats/sensor.py b/kafka/metrics/stats/sensor.py index 6878096..b0bf4db 100644 --- a/kafka/metrics/stats/sensor.py +++ b/kafka/metrics/stats/sensor.py @@ -64,7 +64,7 @@ class Sensor(object): now = time.time() * 1000 if time_ms is None: time_ms = now - self._last_record_time = now + self._last_record_time = time_ms with self._lock: # XXX high volume, might be performance issue # increment all the stats for stat in self._stats: -- cgit v1.2.1