From 60680d38504a108cc021cbc5f5f7c1a75dad3f9b Mon Sep 17 00:00:00 2001 From: jshixiong <2645476194@qq.com> Date: Fri, 9 Aug 2024 14:28:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(resource):=20=E9=98=88=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/route/route.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/route/route.py b/app/route/route.py index f5d5ca0..d0fcfcd 100644 --- a/app/route/route.py +++ b/app/route/route.py @@ -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({