just increase timer event endtime in processrepeated when begintime is equal
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 13 Jun 2007 20:43:15 +0000 (20:43 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 13 Jun 2007 20:43:15 +0000 (20:43 +0000)
to endtime

timer.py

index 0ca4888d7548a48b66f3ad2febcf1edbf7957ca9..3c66c9254793bd5be9ff4fab43fb2796487e047b 100644 (file)
--- a/timer.py
+++ b/timer.py
@@ -72,7 +72,9 @@ class TimerEntry:
                                
                        #we now have a struct_time representation of begin and end in localtime, but we have to calculate back to (gmt) seconds since epoch
                        self.begin = int(mktime(localbegin))
                                
                        #we now have a struct_time representation of begin and end in localtime, but we have to calculate back to (gmt) seconds since epoch
                        self.begin = int(mktime(localbegin))
-                       self.end = int(mktime(localend)) + 1
+                       self.end = int(mktime(localend))
+                       if self.begin == self.end:
+                               self.end += 1
 
                        print "ProcessRepeated result"
                        print strftime("%c", localtime(self.begin))
 
                        print "ProcessRepeated result"
                        print strftime("%c", localtime(self.begin))