diff options
author | Benjamin Schwartz <bens@alum.mit.edu> | 2008-02-08 03:13:58 (GMT) |
---|---|---|
committer | Benjamin Schwartz <bens@alum.mit.edu> | 2008-02-08 03:13:58 (GMT) |
commit | fcfdd355ec2cfd5b3c7cdebe79abb0921ea08694 (patch) | |
tree | 5fdcb4828439022d103157f2984a9aae1453be47 /stopwatch.py | |
parent | 36734e4c7a52bb91c85a5f5087066731d36920ce (diff) |
Don't display negative time
Diffstat (limited to 'stopwatch.py')
-rw-r--r-- | stopwatch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stopwatch.py b/stopwatch.py index a32ddbf..e901bb5 100644 --- a/stopwatch.py +++ b/stopwatch.py @@ -312,7 +312,7 @@ class OneWatchView(): return False def _format(self, t): - return locale.format('%.2f',t) + return locale.format('%.2f', max(0,t)) def _update_label(self, string, ev): self._time_label.set_text(string) |