revert change from april '06
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 16 Oct 2006 23:17:23 +0000 (23:17 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 16 Oct 2006 23:17:23 +0000 (23:17 +0000)
resaons:
adding currently running event as repeated timer doesn't start till the next repeated event occurs
breaks changing repeated timers while they run

please report side effects

timer.py

index 424dde0..a912f1c 100644 (file)
--- a/timer.py
+++ b/timer.py
@@ -50,7 +50,7 @@ class TimerEntry:
                        print time.strftime("%c", time.localtime(self.begin))
                        print time.strftime("%c", time.localtime(self.end))
                        print str(time.localtime(self.begin).tm_wday)
-                       while ((day[time.localtime(self.begin).tm_wday] != 0) or ((day[time.localtime(self.begin).tm_wday] == 0) and self.begin < now)):
+                       while ((day[time.localtime(self.begin).tm_wday] != 0) or ((day[time.localtime(self.begin).tm_wday] == 0) and self.end < now)):
                                print time.strftime("%c", time.localtime(self.begin))
                                print time.strftime("%c", time.localtime(self.end))
                                self.begin += 86400