From 52fed32251f16dc115adcd02c45fdb455a86f8a3 Mon Sep 17 00:00:00 2001 From: pipcat Date: Sun, 8 Apr 2018 13:14:40 +0200 Subject: [PATCH] Quitado ROUND_UP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No cambia mucho, es casi igual, pero parece un poquito más aproximado --- plugin.video.alfa/core/cloudflare.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin.video.alfa/core/cloudflare.py b/plugin.video.alfa/core/cloudflare.py index 0398ec94..b4948b71 100755 --- a/plugin.video.alfa/core/cloudflare.py +++ b/plugin.video.alfa/core/cloudflare.py @@ -113,7 +113,8 @@ class Cloudflare: num2 += str(eval(n)) #return float(num1) / float(num2) - return Decimal(Decimal(num1) / Decimal(num2)).quantize(Decimal('.0000000000000001'), rounding=ROUND_UP) + #return Decimal(Decimal(num1) / Decimal(num2)).quantize(Decimal('.0000000000000001'), rounding=ROUND_UP) + return Decimal(Decimal(num1) / Decimal(num2)).quantize(Decimal('.0000000000000001')) def decode(self, data): t = time.time()