Second attempt
authorEnrico Zini <enrico@enricozini.org>
Wed, 19 Aug 2009 13:50:43 +0000 (14:50 +0100)
committerEnrico Zini <enrico@enricozini.org>
Wed, 19 Aug 2009 13:50:43 +0000 (14:50 +0100)
src/clock.vala

index 0545fe9feebb068550b8665558eb47ac8fa4e8fc..66a2d866370424bef35b4886978161bfefdc099e 100644 (file)
@@ -100,7 +100,7 @@ public class Clock: zavai.Service
                rtc = zavai.registry.sbus.get_object(
                        "org.freesmartphone.odeviced",
                        "/org/freesmartphone/Device/RealTimeClock/0",
-                       "org.freesmartphone.RealTimeClock");
+                       "org.freesmartphone.Device.RealTimeClock");
 
         zavai.registry.sbus.register_object("/", listener);
 
@@ -136,8 +136,10 @@ public class Clock: zavai.Service
                 zavai.log.error("Cannot reschedule alarms: " + e.message);
             }
 
-stderr.printf("Current time: %d, RTC time: %d\n", (int)time_t(), (int)rtc.GetCurrentTime());
-stderr.printf("Scheduled alarm: %d, RTC wakeup time: %d\n", (int)alarms.data.deadline, (int)rtc.GetWakeupTime());
+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();