From a8415ef34e8dce0fe245463163a845116d9fe2b0 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 5 Apr 2026 15:44:10 +0800 Subject: [PATCH] bugfix --- llmage/accounting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llmage/accounting.py b/llmage/accounting.py index dffee4d..8aa0153 100644 --- a/llmage/accounting.py +++ b/llmage/accounting.py @@ -149,7 +149,7 @@ async def llm_accounting(llmusage): async def get_accounting_llmusages(luid=None): env = ServerEnv() lus = [] - t = time.time - 20 + t = time.time() - 20 dt = datetime.fromtimestamp(t) tsstr = dt.strftime('%Y-%m-%d %H:%M:%S.') + f'{dt.microsecond // 1000:03d}' async with get_sor_context(env, 'llmage') as sor: