From a763957334c18c6abe2e70a071a1384885cc4eb9 Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 7 Oct 2014 22:53:57 +0200 Subject: [PATCH] Log minimum 1 second wait --- couchpotato/core/plugins/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/base.py b/couchpotato/core/plugins/base.py index 704aa62c..ab163786 100644 --- a/couchpotato/core/plugins/base.py +++ b/couchpotato/core/plugins/base.py @@ -279,7 +279,7 @@ class Plugin(object): wait = (last_use - now) + self.http_time_between_calls if wait > 0: - log.debug('Waiting for %s, %d seconds', (self.getName(), wait)) + log.debug('Waiting for %s, %d seconds', (self.getName(), max(1, wait))) time.sleep(min(wait, 30)) def beforeCall(self, handler):