Fixed float -> int conversion of parameters.

This commit is contained in:
Daniel Wallin 2007-01-11 17:33:43 +00:00
parent cfb238886d
commit ae2b0afafb
1 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,8 @@ def main():
settings.user_agent = 'python_client/' + lt.version settings.user_agent = 'python_client/' + lt.version
ses = lt.session() ses = lt.session()
ses.set_download_rate_limit(options.max_download_rate) ses.set_download_rate_limit(int(options.max_download_rate))
ses.set_upload_rate_limit(options.max_upload_rate) ses.set_upload_rate_limit(int(options.max_upload_rate))
ses.listen_on(options.port, options.port + 10) ses.listen_on(options.port, options.port + 10)
ses.set_settings(settings) ses.set_settings(settings)
ses.set_severity_level(lt.alert.severity_levels.info) ses.set_severity_level(lt.alert.severity_levels.info)