From 77d436bb07eb4cf8ede5a9ec3c3bbdb4f2186602 Mon Sep 17 00:00:00 2001 From: Jeix Date: Fri, 5 Nov 2010 16:13:51 +0100 Subject: small fixes: progess view in gui,xdcc,shareonline --- module/gui/Queue.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'module/gui/Queue.py') 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 -- cgit v1.2.3