From 11142b661cbc11529f18cd02cef4b64cdd620977 Mon Sep 17 00:00:00 2001 From: AndroKev Date: Thu, 4 Dec 2014 10:56:11 +0100 Subject: [premiumTo] Traffic fix (Tib vs. Gib) --- module/plugins/accounts/PremiumTo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/plugins/accounts') diff --git a/module/plugins/accounts/PremiumTo.py b/module/plugins/accounts/PremiumTo.py index fed95d4ce..9acb5ad1c 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), "validuntil": -1} + return {"trafficleft": int(traffic) / 1024, "validuntil": -1} def login(self, user, data, req): -- cgit v1.2.3