From 88947f64652777141451516e888e5fa566765ca6 Mon Sep 17 00:00:00 2001 From: Patrik Dufresne Date: Wed, 23 May 2018 12:18:06 -0400 Subject: [PATCH] Fix background thread execution. TASK-1001 --- rdiffweb/rdw_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdiffweb/rdw_plugin.py b/rdiffweb/rdw_plugin.py index b6d24bfe..ab49ddf1 100644 --- a/rdiffweb/rdw_plugin.py +++ b/rdiffweb/rdw_plugin.py @@ -473,7 +473,7 @@ class JobPlugin(IDeamonPlugin): """ now = datetime.datetime.now() t = self._get_next_execution_time() - time.sleep(t - now) + time.sleep((t - now).seconds) def _get_next_execution_time(self): """ -- GitLab