浏览代码

time.monotonic() -> time.time()

AlpinDale 10 月之前
父节点
当前提交
b92bddafe9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      aphrodite/engine/metrics.py

+ 1 - 1
aphrodite/engine/metrics.py

@@ -163,7 +163,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.