diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-10 21:45:09 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-10 21:45:09 +0200 |
commit | d0c21a999ba8ddf0c1956415a27f215baa2f727d (patch) | |
tree | 07feeb37a12e95b45b91f5e1faaea19d1b5da613 /module/Progress.py | |
parent | show queue in webif (diff) | |
download | pyload-d0c21a999ba8ddf0c1956415a27f215baa2f727d.tar.xz |
more documentation, some fixes
Diffstat (limited to 'module/Progress.py')
-rw-r--r-- | module/Progress.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/Progress.py b/module/Progress.py index e12786da8..1ce4903a4 100644 --- a/module/Progress.py +++ b/module/Progress.py @@ -34,4 +34,7 @@ class Progress: self.notify() def getPercent(self): - return self.value + try: + return int(self.value) + except: + return 0 |