Skip to content
This repository has been archived by the owner on Dec 12, 2017. It is now read-only.

Commit

Permalink
time.time() -> time.monotonic()
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma committed Dec 22, 2015
1 parent 024f180 commit bf38481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canalplus/progress_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def setAdditionnalInfo(self, info):
def display(self):
""" Display the progress if needed. """
# short circuit if displaying too fast
now = time.time()
now = time.monotonic()
if ((self._current_progress != 100) and
(self._max_updates_per_sec > 0) and
((now - self._last_update_time) <= (1 / self._max_updates_per_sec))):
Expand Down

0 comments on commit bf38481

Please sign in to comment.