[Bugfix] fix_log_time_in_metrics (#4050)

This commit is contained in:
zspo 2024-04-13 22:52:36 +08:00 committed by GitHub
parent 98afde19fc
commit ec8e3c695f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,7 +130,7 @@ class StatLogger:
def __init__(self, local_interval: float, labels: Dict[str, str]) -> None:
# Metadata for logging locally.
self.last_local_log = time.monotonic()
self.last_local_log = time.time()
self.local_interval = local_interval
# Tracked stats over current local logging interval.