From: Youngjae Cho Date: Tue, 11 Feb 2020 07:56:20 +0000 (+0900) Subject: Fix lockcheck interval X-Git-Tag: accepted/tizen/unified/20200216.215210~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b6a6ee5e20605e14f60c73263eb05c40315468c;p=platform%2Fcore%2Fsystem%2Fdeviced.git Fix lockcheck interval Change-Id: Ifac60f83149cb94f8ac1392950fe57b454203cad Signed-off-by: Youngjae Cho --- diff --git a/plugins/iot/display/core.c b/plugins/iot/display/core.c index 68ebd70..ea376e6 100644 --- a/plugins/iot/display/core.c +++ b/plugins/iot/display/core.c @@ -688,7 +688,7 @@ static PmLockNode *add_node(enum state_t s_index, pid_t pid, guint timeout_id, if (pid < INTERNAL_LOCK_BASE) { v = g_variant_new("(ii)", s_index, pid); if (v) { - warning_id = g_timeout_add_seconds(display_conf.lightsensor_interval, + warning_id = g_timeout_add_seconds(display_conf.lockcheck_timeout, pmlock_check, (void *)v); } else { _E("Failed to make GVariant."); diff --git a/plugins/mobile/display/core.c b/plugins/mobile/display/core.c index b145592..8a5b71c 100644 --- a/plugins/mobile/display/core.c +++ b/plugins/mobile/display/core.c @@ -696,7 +696,7 @@ static PmLockNode *add_node(enum state_t s_index, pid_t pid, guint timeout_id, if (pid < INTERNAL_LOCK_BASE) { v = g_variant_new("(ii)", s_index, pid); if (v) { - warning_id = g_timeout_add_seconds(display_conf.lightsensor_interval, + warning_id = g_timeout_add_seconds(display_conf.lockcheck_timeout, pmlock_check, (void *)v); } else { _E("Failed to make GVariant."); diff --git a/plugins/tv/display/core.c b/plugins/tv/display/core.c index 4b45c9f..fc02a25 100644 --- a/plugins/tv/display/core.c +++ b/plugins/tv/display/core.c @@ -688,7 +688,7 @@ static PmLockNode *add_node(enum state_t s_index, pid_t pid, guint timeout_id, if (pid < INTERNAL_LOCK_BASE) { v = g_variant_new("(ii)", s_index, pid); if (v) { - warning_id = g_timeout_add_seconds(display_conf.lightsensor_interval, + warning_id = g_timeout_add_seconds(display_conf.lockcheck_timeout, pmlock_check, (void *)v); } else { _E("Failed to make GVariant."); diff --git a/plugins/wearable/display/core.c b/plugins/wearable/display/core.c index ac135cb..9627b9e 100644 --- a/plugins/wearable/display/core.c +++ b/plugins/wearable/display/core.c @@ -696,7 +696,7 @@ static PmLockNode *add_node(enum state_t s_index, pid_t pid, guint timeout_id, if (pid < INTERNAL_LOCK_BASE) { v = g_variant_new("(ii)", s_index, pid); if (v) { - warning_id = g_timeout_add_seconds(display_conf.lightsensor_interval, + warning_id = g_timeout_add_seconds(display_conf.lockcheck_timeout, pmlock_check, (void *)v); } else { _E("Failed to make GVariant.");