[ooni-probe/master] Cast factor to float.

commit 200610c60f3ce800158b495b05d1c195c9cf133d Author: Arturo Filastò <art@fuffa.org> Date: Sun Aug 18 18:54:51 2013 +0200 Cast factor to float. This was a problem in the web GUI --- data/nettests/blocking/http_requests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/nettests/blocking/http_requests.py b/data/nettests/blocking/http_requests.py index 9208739..a9eb77c 100644 --- a/data/nettests/blocking/http_requests.py +++ b/data/nettests/blocking/http_requests.py @@ -69,8 +69,8 @@ class HTTPRequestsTest(httpt.HTTPTest): rel = 1/rel self.report['body_proportion'] = rel - self.report['factor'] = self.factor - if rel > self.factor: + self.report['factor'] = float(self.factor) + if rel > float(self.factor): log.msg("The two body lengths appear to match") log.msg("censorship is probably not happening") self.report['body_length_match'] = True
participants (1)
-
art@torproject.org