Only set valid optional limit on startup
This commit is contained in:
parent
56efa02820
commit
62c31e1fc3
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class ContentDbPlugin(object):
|
|||
(num, float(total) / 1024 / 1024, float(total_downloaded) / 1024 / 1024, time.time() - s)
|
||||
)
|
||||
|
||||
if self.need_filling and self.getOptionalLimitBytes() < total_downloaded:
|
||||
if self.need_filling and self.getOptionalLimitBytes() >= 0 and self.getOptionalLimitBytes() < total_downloaded:
|
||||
limit_bytes = self.getOptionalLimitBytes()
|
||||
limit_new = round((float(total_downloaded) / 1024 / 1024 / 1024) * 1.1, 2) # Current limit + 10%
|
||||
self.log.debug(
|
||||
|
|
Loading…
Reference in a new issue