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})