refs bug #460
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 24 Jul 2010 10:33:58 +0000 (12:33 +0200)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 24 Jul 2010 10:33:58 +0000 (12:33 +0200)
swap bflag and eflag (begin and end flag for timer sanity check)
old version: bflag = 1, eflag = -1
that lead to the sort function sorting timers with begin=end wrong:
self.nrep_eventlist.extend([(self.newtimer.begin,self.bflag,-1),(self.newtimer.end,self.eflag,-1)])
resulted in (end, eflag) before (begin, bflag) and in a conflict with zapping timers with end=begin (no end time)

lib/python/Components/TimerSanityCheck.py

index 8f48d1ecb0f3588125b4eae4ff1798da33788bc9..b472a19e130c305512a5a5eeee931d5a103d11c9 100644 (file)
@@ -12,8 +12,8 @@ class TimerSanityCheck:
                self.simultimer = []
                self.rep_eventlist = []
                self.nrep_eventlist = []
-               self.bflag = 1
-               self.eflag = -1
+               self.bflag = -1
+               self.eflag = 1
 
        def check(self, ext_timer=1):
                print "check"