cmd/syncthing: Correct auto upgrade criteria (fixes #6701) (#6702)

This commit is contained in:
Jakob Borg
2020-06-02 11:49:22 +02:00
parent 8c74177699
commit d7c3d81dfb
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -200,3 +200,7 @@ func (opts OptionsConfiguration) MaxConcurrentIncomingRequestKiB() int {
// Roll with it.
return opts.RawMaxCIRequestKiB
}
func (opts OptionsConfiguration) ShouldAutoUpgrade() bool {
return opts.AutoUpgradeIntervalH > 0
}