From ae2b0afafb90c03e0f6a90153a6f07435ef47453 Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Thu, 11 Jan 2007 17:33:43 +0000 Subject: [PATCH] Fixed float -> int conversion of parameters. --- bindings/python/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/client.py b/bindings/python/client.py index e9b82a852..c45c79edb 100755 --- a/bindings/python/client.py +++ b/bindings/python/client.py @@ -197,8 +197,8 @@ def main(): settings.user_agent = 'python_client/' + lt.version ses = lt.session() - ses.set_download_rate_limit(options.max_download_rate) - ses.set_upload_rate_limit(options.max_upload_rate) + ses.set_download_rate_limit(int(options.max_download_rate)) + ses.set_upload_rate_limit(int(options.max_upload_rate)) ses.listen_on(options.port, options.port + 10) ses.set_settings(settings) ses.set_severity_level(lt.alert.severity_levels.info)