From cf56dcf9ff1b548b2becd9058dbcd3d81639bce4 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 18 Dec 2018 23:04:32 +1100 Subject: [PATCH] refresh files every 10 seconds rather than 2 so that we're not getting a heap of index lock errors --- pkg/gui/gui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 26ebd5f2b..2af7e77c7 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -472,7 +472,7 @@ func (gui *Gui) Run() error { } gui.goEvery(g, time.Second*60, gui.fetch) - gui.goEvery(g, time.Second*2, gui.refreshFiles) + gui.goEvery(g, time.Second*10, gui.refreshFiles) gui.goEvery(g, time.Millisecond*50, gui.updateLoader) gui.goEvery(g, time.Millisecond*50, gui.renderAppStatus)