From c9f05f7b9c1bdd134cf093731dbe645c57ab837f Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Thu, 2 Feb 2023 07:30:39 +0000 Subject: [PATCH] Fix wrong condition of maximum count of cpu checker The return value should be compared with the INT_MIN. Change-Id: I83cca8e386abafaecf925c035e239dba28189347 Signed-off-by: Hwankyu Jhun --- src/launchpad-process-pool/src/launchpad_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/launchpad-process-pool/src/launchpad_config.c b/src/launchpad-process-pool/src/launchpad_config.c index 90e4256..b1be6ea 100644 --- a/src/launchpad-process-pool/src/launchpad_config.c +++ b/src/launchpad-process-pool/src/launchpad_config.c @@ -251,7 +251,7 @@ static void __cpu_checker_set(dictionary *d) ret = __get_int_value(d, TAG_CPU_CHECKER, KEY_CPU_CHECKER_MAX_COUNT); - if (ret != INT_MAX) + if (ret != INT_MIN) __cpu_checker.max_count = ret; _W("CPU Checker MaxCount(%d)", __cpu_checker.max_count); -- 2.7.4