fix:等于阈值不报警

master
jshixiong 4 months ago
parent b28e8801c6
commit 99b4cf20a3

@ -24,7 +24,7 @@ def get_resource():
memory_percent = memory_usage.get_memory_percent()
online = login_info.get_online_size()
status = 0
if cpu_percent >= cpu_alarm_threshold or memory_percent >= memory_alarm_threshold or io_percent >= io_alarm_threshold:
if cpu_percent > cpu_alarm_threshold or memory_percent > memory_alarm_threshold or io_percent > io_alarm_threshold:
status = 1
return jsonify({

Loading…
Cancel
Save