fix(resource): 阈值

test
jshixiong 1 year ago
parent 682347f813
commit 60680d3850

@ -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 >= 80 or memory_percent >= 80 or io_percent >= 97.5:
if cpu_percent >= 80 or memory_percent >= 80 or io_percent >= 50:
status = 1
return jsonify({

Loading…
Cancel
Save