From e42b08bcf3489d513dc088710f4db50882c8384d Mon Sep 17 00:00:00 2001 From: Ollo Date: Wed, 4 Oct 2023 20:43:08 +0200 Subject: [PATCH] Update StraBa every 50 seconds --- client/bin/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/bin/src/main.rs b/client/bin/src/main.rs index cf2e782..f7ce8b4 100644 --- a/client/bin/src/main.rs +++ b/client/bin/src/main.rs @@ -389,7 +389,7 @@ fn main() -> ExitCode { } } - if (straba_res.request_time + 60) < seconds as i64 { + if (straba_res.request_time + 50) < seconds as i64 { device_online = check_connection(ip.to_string()); // request once a minute new data if device_online == true {