Even more debugging
authorEnrico Zini <enrico@enricozini.org>
Wed, 19 Aug 2009 15:04:06 +0000 (16:04 +0100)
committerEnrico Zini <enrico@enricozini.org>
Wed, 19 Aug 2009 15:04:06 +0000 (16:04 +0100)
src/clock.vala

index f27570c28e5c29666c8d509374628f9e2b6bad02..bf8df27ddaebb0e2f541b0bd7c9d5e75278ef426 100644 (file)
@@ -124,6 +124,7 @@ public class Clock: zavai.Service
         if (alarms != null)
         {
             zavai.log.info("Scheduling next alarm: " + alarms.data.label + " at " + Time.local(alarms.data.deadline).to_string());
+            zavai.log.info("Scheduling at abs " + "%d".printf((int)alarms.data.deadline));
             
             try {
                 otimed_alarm.ClearAlarm(zavai.registry.bus_name);
@@ -136,10 +137,10 @@ public class Clock: zavai.Service
                 zavai.log.error("Cannot reschedule alarms: " + e.message);
             }
 
-//string t = rtc.GetCurrentTime();
-//stderr.printf("Current time: %d, RTC time: %s\n", (int)time_t(), t);
-//t = rtc.GetWakeupTime();
-//stderr.printf("Scheduled alarm: %d, RTC wakeup time: %s\n", (int)alarms.data.deadline, t);
+string t = rtc.GetCurrentTime();
+stderr.printf("Current time: %d, RTC time: %s\n", (int)time_t(), t);
+t = rtc.GetWakeupTime();
+stderr.printf("Scheduled alarm: %d, RTC wakeup time: %s\n", (int)alarms.data.deadline, t);
         } else
             zavai.log.info("No alarms left to reschedule");
         schedule_changed();