Skip to content

Commit

Permalink
[timer]
Browse files Browse the repository at this point in the history
* fix float/int issue
  • Loading branch information
jbleyel committed Aug 27, 2024
1 parent 2adf583 commit 2d2337b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def shouldSkip(self): # Check if a timer entry must be skipped.
return self.end <= time() and (self.state == TimerEntry.StateWaiting or self.state == TimerEntry.StateFailed)

def abort(self):
self.end = time()
self.end = int(time())
if self.begin > self.end: # In case timer has not yet started, but gets aborted (so it's preparing), set begin to now.
self.begin = self.end
self.cancelled = True
Expand Down

0 comments on commit 2d2337b

Please sign in to comment.