summaryrefslogtreecommitdiffstats
path: root/pyload/network/XDCCRequest.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/network/XDCCRequest.py')
-rw-r--r--pyload/network/XDCCRequest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyload/network/XDCCRequest.py b/pyload/network/XDCCRequest.py
index ccaeebe5f..dff500749 100644
--- a/pyload/network/XDCCRequest.py
+++ b/pyload/network/XDCCRequest.py
@@ -145,7 +145,8 @@ class XDCCRequest(object):
@property
def percent(self):
- if not self.filesize: return 0
+ if not self.filesize:
+ return 0
return (self.recv * 100) / self.filesize