From e301184b0285319ee924d29d2c0b8cdb4eab153e Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 4 Jun 2025 09:09:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96IO=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/dashboard/blueprints/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/dashboard/blueprints/system.py b/admin/dashboard/blueprints/system.py index 1a6373c..bdd246c 100644 --- a/admin/dashboard/blueprints/system.py +++ b/admin/dashboard/blueprints/system.py @@ -42,7 +42,7 @@ def api_system_info(): "disk_usage": psutil.disk_usage('/').percent, "uptime": time.time() - APP_START_TIME, # 使用应用启动时间计算运行时长 "timestamp": datetime.now().strftime("%Y-%m-%d %H:%M:%S"), - "open_files": psutil.Process(os.getpid()).open_files() + "open_files": len(psutil.Process(os.getpid()).open_files()) } return jsonify({"success": True, "data": system_info})