summaryrefslogtreecommitdiffstats
path: root/module/gui
diff options
context:
space:
mode:
Diffstat (limited to 'module/gui')
-rw-r--r--module/gui/Queue.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/gui/Queue.py b/module/gui/Queue.py
index 1bfd23af1..5489f85ce 100644
--- a/module/gui/Queue.py
+++ b/module/gui/Queue.py
@@ -106,6 +106,8 @@ class QueueModel(CollectorModel):
since = float(since)
max_wait = float(until-since)
rest = int(until-time())
+ if rest < 0:
+ return 0, None
res = 100/max_wait
perc = rest*res
return perc, rest