|
|
|
@ -20,7 +20,7 @@ def get_resource():
|
|
|
|
|
memory_percent = memory_usage.get_memory_percent()
|
|
|
|
|
online = login_info.get_online_size()
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
return jsonify({
|
|
|
|
|