fix miscalculated duetime 42/93542/3
authorJiwoong Im <jiwoong.im@samsung.com>
Tue, 25 Oct 2016 01:37:17 +0000 (10:37 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Tue, 25 Oct 2016 05:29:09 +0000 (22:29 -0700)
Change-Id: Ibddb808f132c93bb88f4b5c4b05d52ba134eff93
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
alarm-manager-schedule.c

index 696655a..da14495 100644 (file)
@@ -238,9 +238,6 @@ static time_t __alarm_next_duetime_repeat(__alarm_info_t *__alarm_info)
        while (__alarm_info->start > due_time || current_time > due_time || ((!is_time_changed) && (current_time == due_time)))
                due_time += alarm_info->mode.u_interval.interval;
 
-       if (due_time - current_time < 10)
-               due_time += alarm_info->mode.u_interval.interval;
-
        localtime_r(&due_time, &duetime_tm);
 
        start->year = duetime_tm.tm_year + 1900;