summaryrefslogtreecommitdiffstats
path: root/module/gui
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2010-11-05 16:13:51 +0100
committerGravatar Jeix <devnull@localhost> 2010-11-05 16:13:51 +0100
commit77d436bb07eb4cf8ede5a9ec3c3bbdb4f2186602 (patch)
tree581071381ac07229c3abd19d2cc4d90c4f043b9e /module/gui
parentfiles.mail.ru improvement (diff)
downloadpyload-77d436bb07eb4cf8ede5a9ec3c3bbdb4f2186602.tar.xz
small fixes: progess view in gui,xdcc,shareonline
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