From 0902f869e1dc40d7743f204b6d8a8b4f092f162f Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 25 Sep 2024 12:29:53 +0200 Subject: [PATCH] Fixed invalid automatic telemetry request scheduling timebase --- sbapp/sideband/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index c4a8938..59c0150 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -759,6 +759,7 @@ class SidebandCore(): self.update_ignore_invalid_stamps() except Exception as e: RNS.log("Error while reloading configuration: "+str(e), RNS.LOG_ERROR) + RNS.trace_exception(e) def __save_config(self): RNS.log("Saving Sideband configuration...", RNS.LOG_DEBUG) @@ -1203,7 +1204,8 @@ class SidebandCore(): self.message_router.handle_outbound(message) else: if message.state == LXMF.LXMessage.DELIVERED: - self.setpersistent(f"telemetry.{RNS.hexrep(message.destination_hash, delimit=False)}.last_request_success_timebase", message.request_timebase) + delivery_timebase = int(time.time()) + self.setpersistent(f"telemetry.{RNS.hexrep(message.destination_hash, delimit=False)}.last_request_success_timebase", delivery_timebase) self.setstate(f"telemetry.{RNS.hexrep(message.destination_hash, delimit=False)}.request_sending", False) if message.destination_hash == self.config["telemetry_collector"]: self.pending_telemetry_request = False