jshixiong 1 year ago
parent 58f655058c
commit 02daefd1fb

@ -20,7 +20,7 @@ def get_resource():
memory_percent = memory_usage.get_memory_percent() memory_percent = memory_usage.get_memory_percent()
online = login_info.get_online_size() online = login_info.get_online_size()
status = 0 status = 0
if cpu_percent >= 80 or memory_percent >= 80 or io_percent >= 50: if cpu_percent >= 70 or memory_percent >= 70 or io_percent >= 50:
status = 1 status = 1
return jsonify({ return jsonify({

Loading…
Cancel
Save