fix prometheus
This commit is contained in:
parent
52dc918125
commit
6029cdc831
|
@ -49,7 +49,7 @@ class Prometheus():
|
||||||
|
|
||||||
def handler(self, metrics_handler):
|
def handler(self, metrics_handler):
|
||||||
now = time()
|
now = time()
|
||||||
if now >= i(self._last_update + self.ttl):
|
if now >= (self._last_update + self.ttl):
|
||||||
self._metrics.update()
|
self._metrics.update()
|
||||||
self._last_update = now
|
self._last_update = now
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue