Skip to content

Commit 36f20f1

Browse files
committed
v2.1.20
1 parent 201ec80 commit 36f20f1

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

meshtastic_listener/__main__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,15 +386,16 @@ def __check_node_health__(self) -> None:
386386
This function is designed to run in a thread in a loop.
387387
'''
388388

389-
# for every n minutes of updater interval, look back 1 hour
390-
# 15 minutes -> 15 hours lookback
389+
# for every n minutes of updater interval, look back 2 hours
390+
# 15 minutes -> 30 hours lookback
391391
lookback_hours = int(self.update_interval.total_seconds() / 60)
392+
logging.info(f'Node health check will look back {lookback_hours * 2} hours for metrics.')
392393

393394
while not self.shutdown_flag.is_set():
394395
try:
395396
settings = self.db.get_alert_settings()
396397
now = time.time()
397-
lookback_ts = int(now - timedelta(hours=lookback_hours).total_seconds())
398+
lookback_ts = int(now - timedelta(hours=lookback_hours * 2).total_seconds())
398399

399400
self.__check_traceroute_responses__(
400401
alert_settings=settings,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "meshtatic_listener"
3-
version = "2.1.19"
3+
version = "2.1.20"
44
description = "A server for connecting to a Meshtastic device and responding to commands."
55
authors = [{ name = "Michael Gillett", email = "51103663+migillett@users.noreply.github.com" }]
66
requires-python = ">=3.10,<3.14"

uv.lock

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)