aboutsummaryrefslogtreecommitdiff
path: root/src/wakeup-timer-uha.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-06-10 09:05:35 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-06-10 09:05:35 -0500
commit79372164fe92a3022df32ef2c6812445126ac00e (patch)
treed70dd1151da2ea9f2fc08d2dba54105b6a20a25e /src/wakeup-timer-uha.cpp
parent3993fcd4ba813f3c978c98648ad5fa2f4d848d7d (diff)
downloadayatana-indicator-datetime-79372164fe92a3022df32ef2c6812445126ac00e.tar.gz
ayatana-indicator-datetime-79372164fe92a3022df32ef2c6812445126ac00e.tar.bz2
ayatana-indicator-datetime-79372164fe92a3022df32ef2c6812445126ac00e.zip
in wakeup-timer-uha, set idle wakeup to 1 day from now rather than 1 year from now.
Diffstat (limited to 'src/wakeup-timer-uha.cpp')
-rw-r--r--src/wakeup-timer-uha.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wakeup-timer-uha.cpp b/src/wakeup-timer-uha.cpp
index b634f52..0db9fb0 100644
--- a/src/wakeup-timer-uha.cpp
+++ b/src/wakeup-timer-uha.cpp
@@ -89,8 +89,8 @@ private:
void set_wakeup_time_to_the_distant_future()
{
- const auto next_year = m_clock->localtime().add_full(1,0,0,0,0,0);
- set_wakeup_time(next_year);
+ const auto tomorrow = m_clock->localtime().add_full(0,0,1,0,0,0);
+ set_wakeup_time(tomorrow);
}
static gboolean kick_idle (gpointer gself)