diff --git a/category/get_perf_info.py b/category/get_perf_info.py index 8b3adc68223da8247f325b9e8328fc305db872e2..40b18f2d32af7eae7864821b498fc1b2b44ae590 100644 --- a/category/get_perf_info.py +++ b/category/get_perf_info.py @@ -242,6 +242,12 @@ class OffCPU(): if ival <= 0: Logger().error("Application.OffCPU.duration must be positive and nonzero") return False + if ival > 60: + Logger().error("Application.OffCPU.duration not allowed to exceed 60") + return False + if ival < 5: + Logger().error("Application.OffCPU.duration not allowed below 5") + return False return True # perf collect subfunction1: perf record command execute