From: Eugene Crosser Date: Fri, 26 Jul 2024 21:36:41 +0000 (+0200) Subject: Make shorter commit interval X-Git-Url: http://average.org/gitweb/?a=commitdiff_plain;h=60faf7c941ff22303377157fdd0ec965d0e6abdd;p=tbcncollector.git Make shorter commit interval in the hope that it will allow hourly runs --- diff --git a/tbcncollector/__main__.py b/tbcncollector/__main__.py index 4b47152..18b5200 100644 --- a/tbcncollector/__main__.py +++ b/tbcncollector/__main__.py @@ -45,7 +45,7 @@ def detection_callback(dev, data): :addr, :batt, :temp, :humid, :time)""", dic) now = time() - if now - lastcommit > 100.0: + if now - lastcommit > 10.0: db.commit() lastcommit = now