Fix wrong condition of maximum count of cpu checker 79/287679/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 2 Feb 2023 07:30:39 +0000 (07:30 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 2 Feb 2023 07:30:39 +0000 (07:30 +0000)
The return value should be compared with the INT_MIN.

Change-Id: I83cca8e386abafaecf925c035e239dba28189347
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad-process-pool/src/launchpad_config.c

index 90e4256..b1be6ea 100644 (file)
@@ -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);