From 60faf7c941ff22303377157fdd0ec965d0e6abdd Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Fri, 26 Jul 2024 23:36:41 +0200 Subject: [PATCH] Make shorter commit interval in the hope that it will allow hourly runs --- tbcncollector/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.0