diff --git a/category/get_perf_info.py b/category/get_perf_info.py index 6ab2ba37e3c63b7ae856f83b263af8d75c69344b..69ae87a61a22a9ae3c761f5780bbd5d9e710ead0 100644 --- a/category/get_perf_info.py +++ b/category/get_perf_info.py @@ -222,9 +222,11 @@ class OffCPU(): if len(offcpu_args) == 0: self.__enable = GlobalCall.get_json_value("Getting.Application.OffCPU.enable" , 0, Config.get_json_dict()) + self.__pid = GlobalCall.get_json_value("Getting.Application.OffCPU.pid", convert_str(''), Config.get_json_dict()) self.offcpu_duration = GlobalCall.get_json_value("Getting.Application.OffCPU.duration", 15, Config.get_json_dict()) else: self.__enable = int(offcpu_args['offcpu_enable']) + self.__pid = convert_str(offcpu_args['offcpu_pid']) self.offcpu_duration = int(offcpu_args['offcpu_duration']) def __diff_kernel_version(self, dest):