fix(resource): 阈值

test
jshixiong 1 year ago
parent e23df794b1
commit c7b2e395c3

@ -19,7 +19,7 @@ def get_resource():
io_percent = io_usage.get_io_percent()
memory_percent = memory_usage.get_memory_percent()
status = 0
if cpu_percent >= 30 or memory_percent >= 60:
if cpu_percent >= 80 or memory_percent >= 80 or io_percent >= 97.5:
status = 1
return jsonify({

Loading…
Cancel
Save