aboutsummaryrefslogtreecommitdiff
path: root/timer.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-06-13 20:43:15 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-06-13 20:43:15 +0000
commita7df600c514e420df8a7774c6ea8aafb91569a23 (patch)
tree9293c71608b2b8f60335e5d2f745cdf09d4716b9 /timer.py
parentfc6e31df26615c00428cd3aab32ee70d840bb9d5 (diff)
downloadenigma2-a7df600c514e420df8a7774c6ea8aafb91569a23.tar.gz
enigma2-a7df600c514e420df8a7774c6ea8aafb91569a23.zip
just increase timer event endtime in processrepeated when begintime is equal
to endtime
Diffstat (limited to 'timer.py')
-rw-r--r--timer.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/timer.py b/timer.py
index 0ca4888d..3c66c925 100644
--- 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))
- 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))