Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
This patch fix the issue of services receiving detection callback after every detection.
After this patch services will only receive detection event only once in their detection cycle.
This patch does not affect the environmental sensors callback.
Change-Id: Idea2cf785dbe302c921ef18f67d70bc500896dbd
Name: ua-manager
Summary: User awareness manager
-Version: 0.10.4
+Version: 0.10.5
Release: 1
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
if (!svc || !svc->monitors)
continue;
+ UAM_INFO("service [%s] remaining time [%d] cycle [%d]",
+ svc->name, svc->remaining_time, svc->cycle);
+
+ if (!(svc->remaining_time == svc->cycle))
+ continue;
+
for (l1 = svc->monitors; NULL != l1; l1 = g_slist_next(l1)) {
uam_monitor_info_t *mon = l1->data;