aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2013-09-06 12:52:30 -0500
committerTed Gould <ted@gould.cx>2013-09-06 12:52:30 -0500
commitdfc6f669720cd38250c57bf2efff97caedfaca81 (patch)
tree9e474ab231ae2604fa6bc3776122d9923faba0f6 /src
parentf5746cfe118abf74fd2ef75ed4fb03d9a92cfa14 (diff)
downloadayatana-indicator-datetime-dfc6f669720cd38250c57bf2efff97caedfaca81.tar.gz
ayatana-indicator-datetime-dfc6f669720cd38250c57bf2efff97caedfaca81.tar.bz2
ayatana-indicator-datetime-dfc6f669720cd38250c57bf2efff97caedfaca81.zip
Make all seconds a tenth of a second in bounds
Diffstat (limited to 'src')
-rw-r--r--src/service.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/service.c b/src/service.c
index c46beeb..f6d1d59 100644
--- a/src/service.c
+++ b/src/service.c
@@ -227,7 +227,7 @@ calculate_seconds_until_next_fifteen_minutes (GDateTime * now)
g_date_time_get_day_of_month (next),
g_date_time_get_hour (next),
g_date_time_get_minute (next),
- 1);
+ 0.1);
str = g_date_time_format (start_of_next, "%F %T");
g_debug ("%s %s the next timestamp rebuild will be at %s", G_STRLOC, G_STRFUNC, str);
@@ -299,7 +299,7 @@ calculate_milliseconds_until_next_minute (GDateTime * now)
g_date_time_get_day_of_month (next),
g_date_time_get_hour (next),
g_date_time_get_minute (next),
- 0);
+ 0.1);
interval_usec = g_date_time_difference (start_of_next, now);
interval_msec = (interval_usec + 999) / 1000;
@@ -1650,8 +1650,8 @@ update_appointment_lists (IndicatorDatetimeService * self)
/* get all the appointments in the calendar month */
g_date_time_get_ymd (calendar_date, &y, &m, &d);
- begin = g_date_time_new_local (y, m, 1, 0, 0, 0);
- end = g_date_time_new_local (y, m, g_date_get_days_in_month(m,y), 23, 59, 0);
+ begin = g_date_time_new_local (y, m, 1, 0, 0, 0.1);
+ end = g_date_time_new_local (y, m, g_date_get_days_in_month(m,y), 23, 59, 59.9);
if (begin && end)
indicator_datetime_planner_get_appointments (planner, begin, end,
on_calendar_appointments_ready,