aboutsummaryrefslogtreecommitdiff
path: root/src/alarm-queue-simple.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/alarm-queue-simple.cpp')
-rw-r--r--src/alarm-queue-simple.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/alarm-queue-simple.cpp b/src/alarm-queue-simple.cpp
index 2e36380..fa6c0bc 100644
--- a/src/alarm-queue-simple.cpp
+++ b/src/alarm-queue-simple.cpp
@@ -105,25 +105,19 @@ bool SimpleAlarmQueue::find_next_alarm(Appointment& setme) const
const auto beginning_of_minute = now.add_full (0, 0, 0, 0, 0, -now.seconds());
const auto appointments = m_planner->appointments().get();
- g_message ("planner has %zu appointments in it", (size_t)appointments.size());
+ g_debug ("planner has %zu appointments in it", (size_t)appointments.size());
for(const auto& walk : appointments)
{
const std::pair<std::string,DateTime> trig {walk.uid, walk.begin};
- if (m_triggered.count(trig)) {
- g_message ("skipping; already used");
+ if (m_triggered.count(trig))
continue;
- }
- if (walk.begin < beginning_of_minute) { // has this one already passed?
- g_message ("skipping; too old");
+ if (walk.begin < beginning_of_minute) // has this one already passed?
continue;
- }
- if (found && (tmp.begin < walk.begin)) { // do we already have a better match?
- g_message ("skipping; bad match");
+ if (found && (tmp.begin < walk.begin)) // do we already have a better match?
continue;
- }
tmp = walk;
found = true;