Skip to content

Commit ba3ae40

Browse files
author
Syntax-Vibe-Amir
committed
Fix API field name: ram -> memory
1 parent d28884d commit ba3ae40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def index():
1313
def health():
1414
return jsonify({
1515
"cpu": psutil.cpu_percent(),
16-
"ram": psutil.virtual_memory().percent,
16+
"memory": psutil.virtual_memory().percent, # ← تغییر این خط
1717
"disk": psutil.disk_usage('/').percent,
1818
"time": datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
1919
})

0 commit comments

Comments
 (0)