From b589b6fd0d292ab47e9fdd67346ab1a069076b1a Mon Sep 17 00:00:00 2001 From: jshixiong <2645476194@qq.com> Date: Thu, 8 Aug 2024 14:06:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(control):=20=E7=B3=BB=E7=BB=9F=E6=8E=A7?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/login_info.py | 2 +- app/request_info.py | 2 +- app/route/route.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/login_info.py b/app/login_info.py index e1a0d66..0d4425c 100644 --- a/app/login_info.py +++ b/app/login_info.py @@ -6,7 +6,7 @@ def get_recent_login_info(page_index=1, page_size=10): if page_index <= 0: page_index = 1 - if page_size <=0 | page_size > 20: + if page_size <=0 or page_size > 20: page_size = 10 login_info = [] diff --git a/app/request_info.py b/app/request_info.py index fa4cbbe..b864150 100644 --- a/app/request_info.py +++ b/app/request_info.py @@ -8,7 +8,7 @@ def get_request_info(page_index=1, page_size=10): if page_index <= 0: page_index = 1 - if page_size <=0 | page_size > 20: + if page_size <=0 or page_size > 20: page_size = 10 request_info = [] diff --git a/app/route/route.py b/app/route/route.py index f798c87..7d43f6a 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 >= 30 | memory_percent >= 60: + if cpu_percent >= 30 or memory_percent >= 60: status = 1 return jsonify({