summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/ext/vcs/vcs.py2
-rw-r--r--ranger/gui/ui.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/ranger/ext/vcs/vcs.py b/ranger/ext/vcs/vcs.py
index 2ea2773e..241038e0 100644
--- a/ranger/ext/vcs/vcs.py
+++ b/ranger/ext/vcs/vcs.py
@@ -354,7 +354,7 @@ class VcsThread(threading.Thread):
         super(VcsThread, self).__init__()
         self.daemon = True
         self.ui = ui
-        self.delay = idle_delay / 1000
+        self.delay = idle_delay
         self.wake = threading.Event()
 
     def _check(self):
diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py
index 49c99777..c3f68586 100644
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -253,7 +253,7 @@ class UI(DisplayableContainer):
         self.add_child(self.pager)
 
         # Create VCS thread
-        self.vcsthread = VcsThread(self, self.settings.idle_delay)
+        self.vcsthread = VcsThread(self, max(1, self.settings.idle_delay / 1000))
         self.vcsthread.start()
 
     def redraw(self):