From b234856b0237ff60f045e91b9d970d108c1ae1db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=A1=E9=B8=A695676?= Date: Mon, 24 Mar 2025 11:36:46 +0800 Subject: [PATCH] Remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除以通过ruff检查 在Ubuntu24.04LTS中,移除未见对现有功能的影响 --- astrbot/dashboard/routes/stat.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/astrbot/dashboard/routes/stat.py b/astrbot/dashboard/routes/stat.py index a74187977..5c197fad7 100644 --- a/astrbot/dashboard/routes/stat.py +++ b/astrbot/dashboard/routes/stat.py @@ -65,8 +65,6 @@ class StatRoute(Route): stat_dict = stat.__dict__ - # 获取CPU使用率 - 修复CPU始终为0的问题 - process = psutil.Process() # 获取系统CPU使用率而不是进程CPU使用率 cpu_percent = psutil.cpu_percent(interval=0.5)