From f44f5964bb69c28b61943044b1eddc81f3e20029 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Wed, 27 Aug 2014 23:45:09 +0100 Subject: [PATCH] Set rescan interval on default repository (fixes #579) --- cmd/syncthing/main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index a87258edf..71cedd7bd 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -318,9 +318,10 @@ func main() { cfg, err = config.Load(nil, myID) cfg.Repositories = []config.RepositoryConfiguration{ { - ID: "default", - Directory: defaultRepo, - Nodes: []config.RepositoryNodeConfiguration{{NodeID: myID}}, + ID: "default", + Directory: defaultRepo, + RescanIntervalS: 60, + Nodes: []config.RepositoryNodeConfiguration{{NodeID: myID}}, }, } cfg.Nodes = []config.NodeConfiguration{