From ce0599436c0e9c64633052de68ea1d1dd223b740 Mon Sep 17 00:00:00 2001 From: tenglei Date: Tue, 9 Jul 2024 14:44:47 +0800 Subject: [PATCH] add Condition of judgment in get_perf_info --- category/get_perf_info.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/category/get_perf_info.py b/category/get_perf_info.py index 44bf0d8..e377f8f 100644 --- a/category/get_perf_info.py +++ b/category/get_perf_info.py @@ -139,6 +139,9 @@ class Perf(): if ival <= 0: Logger().error("Application.Perf.duration must be positive and nonzero") return False + if ival > 300: + Logger().error("Application.Perf.duration not allowed to exceed 300") + return False return True # OffCPU Class -- Gitee