aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-07-19 19:16:54 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-07-19 19:16:54 +0900
commitb1ac38802b6145f1246eb7347b4d04a42895278b (patch)
treed878a2f177aa3c64e7925b1f4c55569db213b4a4
parent8ab10aaafc6fb3dc7bbad755dce9b4bdaa41f287 (diff)
Try to fix: time out expired immediatelysandbox/jsmoeller/timerfix
Bug-AGL: SPEC-1471 Change-Id: I13b3cdc1b0f735588b4f352c6ed1822a5cb966af Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--src/window_manager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/window_manager.cpp b/src/window_manager.cpp
index eadf7ff..27a87ed 100644
--- a/src/window_manager.cpp
+++ b/src/window_manager.cpp
@@ -30,7 +30,7 @@ extern "C"
namespace wm
{
-static const unsigned kTimeOut = 3000000UL; /* 3s */
+static const unsigned kTimeOut = 3000000; /* 3s */
/* DrawingArea name used by "{layout}.{area}" */
const char kNameLayoutNormal[] = "normal";
@@ -1457,7 +1457,7 @@ void WindowManager::setTimer()
{
// firsttime set into sd_event
int ret = sd_event_add_time(afb_daemon_get_event_loop(), &g_timer_ev_src,
- CLOCK_REALTIME, time(NULL) * (1000000UL) + kTimeOut, 1, processTimerHandler, this);
+ CLOCK_REALTIME, time(NULL) * (1000000) + kTimeOut, 1, processTimerHandler, this);
if (ret < 0)
{
HMI_ERROR("wm", "Could't set timer");
@@ -1466,7 +1466,7 @@ void WindowManager::setTimer()
else
{
// update timer limitation after second time
- sd_event_source_set_time(g_timer_ev_src, time(NULL) * (1000000UL) + kTimeOut);
+ sd_event_source_set_time(g_timer_ev_src, time(NULL) * (1000000) + kTimeOut);
sd_event_source_set_enabled(g_timer_ev_src, SD_EVENT_ONESHOT);
}
}