summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/PremiumTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-16 12:12:14 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-16 12:12:14 +0200
commit5d26b3f5c3b18d916b2ea24a22770cf62e207a50 (patch)
tree78ab9dc281a79cadca5629dd9085a974b3251acd /module/plugins/accounts/PremiumTo.py
parent[Webui] Fix wrong trafficleft format (diff)
downloadpyload-5d26b3f5c3b18d916b2ea24a22770cf62e207a50.tar.xz
Fix trafficleft size in some account plugins
Diffstat (limited to 'module/plugins/accounts/PremiumTo.py')
-rw-r--r--module/plugins/accounts/PremiumTo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/accounts/PremiumTo.py b/module/plugins/accounts/PremiumTo.py
index d13d9b866..7875e5021 100644
--- a/module/plugins/accounts/PremiumTo.py
+++ b/module/plugins/accounts/PremiumTo.py
@@ -20,7 +20,7 @@ class PremiumTo(Account):
get={'username': self.username, 'password': self.password})
traffic = sum(map(int, api_r.split(';')))
- return {"trafficleft": int(traffic) / 1024, "validuntil": -1}
+ return {"trafficleft": int(traffic), "validuntil": -1}
def login(self, user, data, req):