Correct env var syntax of STRECHECKDBEVERY

Hi,

this should be easy. What is the correct syntax of the env var “STRECHECKDBEVERY”? I’ve found different writeouts on the forum.

  1. Database to upgrade to v1.4.0-rc.7

STRECHECKDBEVERY=0

  1. Up to date but not syncing

STRECHECKDBEVERY=1s

  1. syncthing shows different Globald and Local States in Send Only Configuration

STRECHECKDBEVERY=0s

Should more than one of these are valid, what does the number with or without the “s” mean exactly?

Thank you.

Kind regards, Catfriend1

All from memory, didn’t check: There has been a change at some point where the meaning of 0 went from “do it always” to “do it never”, so now it’s 1s, which means “do it when 1s old, which is essentially always”. It’s a duration string, i.e. needs a unit thus 1s.

2 Likes

Precise and useful :+1:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.