From dd52e47ccc6ea82e0107489603f348b4c76f7049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=94=E6=B3=95=E5=B8=88?= Date: Sun, 1 Mar 2026 18:54:22 +0000 Subject: [PATCH] fix: correct typo in ModelUsageCounter log message The log line in estimate_usage() contained a misspelling: remain_time_anticipatioin -> remain_time_anticipation This is a cosmetic fix with no functional impact, but the typo causes confusion when grepping logs or writing monitoring rules that match on the field name. --- sdgsystem/models/usage_counter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdgsystem/models/usage_counter.py b/sdgsystem/models/usage_counter.py index 2ae1cc4..2d0781e 100644 --- a/sdgsystem/models/usage_counter.py +++ b/sdgsystem/models/usage_counter.py @@ -107,7 +107,7 @@ def estimate_usage(self, n): remain_token_anticipation = int(avg_token * self.remain) remain_time_anticipation = avg_time * self.remain - logger.info(f"[{self.name} Usage]: completed={self.completed}, token={self.token}, time={self.time:.2f} || remain={self.remain}, remain_token_anticipation={remain_token_anticipation}, remain_time_anticipatioin={remain_time_anticipation:.2f}") + logger.info(f"[{self.name} Usage]: completed={self.completed}, token={self.token}, time={self.time:.2f} || remain={self.remain}, remain_token_anticipation={remain_token_anticipation}, remain_time_anticipation={remain_time_anticipation:.2f}") # call callback outside of lock to avoid deadlock if self._on_update: