download delay in autothrottle was being casted as int, should be float

This commit is contained in:
Martin Olveyra 2012-11-15 18:41:32 +00:00
parent 17d958469f
commit 421dba98a7
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ class AutoThrottle(object):
self.last_lat = self.START_DELAY, 0.0
def _min_download_delay(self, settings):
return max(settings.getint("AUTOTHROTTLE_MIN_DOWNLOAD_DELAY"),
settings.getint("DOWNLOAD_DELAY"))
return max(settings.getfloat("AUTOTHROTTLE_MIN_DOWNLOAD_DELAY"),
settings.getfloat("DOWNLOAD_DELAY"))
def _max_concurency(self, settings):
delay = self._min_download_delay(settings)