Check threshold in memory monitor 33/262233/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 4 Aug 2021 23:42:24 +0000 (08:42 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 4 Aug 2021 23:42:24 +0000 (08:42 +0900)
If the threshold is equal to 100, the launchpad-process-pool doesn't
start monitoring the system memory.

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

index 5bd52ab8225a993cecf6e11d56c1d62b1a479a85..7bd3d4aa69158de1a157a361479c9df1e4ecab42 100644 (file)
@@ -69,6 +69,9 @@ static void __memory_monitor_stop(void)
 
 static void __memory_monitor_start(void)
 {
+       if (__monitor.threshold == 100)
+               return;
+
        if (__monitor.tag)
                return;