From d849b9447c38b09d3edd2b03bd46249be6f5990a Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 9 Oct 2018 18:09:10 +0300 Subject: Fix: Throttle debug message --- serve.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/serve.py b/serve.py index be8c047..012ae44 100755 --- a/serve.py +++ b/serve.py @@ -30,8 +30,9 @@ class Handler(BaseHTTPRequestHandler): return if os.getenv('GSX_THROTTLE'): - self.log_message('Throttling for %d' % os.getenv('GSX_THROTTLE')) - time.sleep(os.getenv('GSX_THROTTLE')) + t = int(os.getenv('GSX_THROTTLE')) + self.log_message('Throttling for %d' % t) + time.sleep(t) self.send_response(200) l = int(self.headers['Content-Length']) -- cgit v1.2.3