Set a minimum delay of 1s between snapshots

Followup to #2067
This commit is contained in:
Gina Häußge committed 2017-10-26 16:38:40 +02:00
1 parent 09509ca61d
commit bedcbb80be
3 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -241,7 +241,7 @@ def setTimelapseConfig():
except ValueError:
return make_response("Invalid value for minimum delay: %r" % data["minDelay"], 400)
else:
if minDelay >= 0:
if minDelay > 0:
config["options"]["minDelay"] = minDelay
else:
return make_response("Invalid value for minimum delay: %f" % minDelay, 400)