Add unit(in variable) & fix bugs
[platform/core/system/resourced.git] / src / resourced / init.c
index 4b4733c..4635d23 100644 (file)
@@ -383,12 +383,12 @@ int fixed_service_list_init(void *data)
                }
 
                /* register a notification when this service memory is over a threshold */
-               if (pci->mem_action.memory && pci->mem_action.action) {
+               if (pci->mem_action.memory_bytes && pci->mem_action.action) {
                        struct proc_limit_status pls = {0, };
 
                        pls.ps.pid = pid;
                        pls.ps.pci = pci;
-                       pls.limit = pci->mem_action.memory;
+                       pls.limit_bytes = pci->mem_action.memory_bytes;
                        pls.action = pci->mem_action.action;
                        resourced_notify(RESOURCED_NOTIFIER_LIMIT_SYSTEM_SERVICE, &pls);
                }