From 62c31e1fc33ae6b9ef60991a2688028257cf6fc9 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Thu, 9 Feb 2017 01:57:44 +0100 Subject: [PATCH] Only set valid optional limit on startup --- plugins/OptionalManager/ContentDbPlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/OptionalManager/ContentDbPlugin.py b/plugins/OptionalManager/ContentDbPlugin.py index 8de3749d..bd00890e 100644 --- a/plugins/OptionalManager/ContentDbPlugin.py +++ b/plugins/OptionalManager/ContentDbPlugin.py @@ -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(