fix(reporter): refresh last_heal_timestamp on every heal result
This commit is contained in:
1 parent
469a30df6a
commit
ecda631049
2 files changed
+25
-2
No files matched your search
+5
-2
@@ -137,8 +137,11 @@ class LocalStateReporter:
|
||||
)
|
||||
if heal_result is not None:
|
||||
effective_heal_result = heal_result
|
||||
if effective_last_heal_timestamp is None:
|
||||
effective_last_heal_timestamp = datetime.now().isoformat()
|
||||
effective_last_heal_timestamp = (
|
||||
last_heal_timestamp
|
||||
if last_heal_timestamp is not None
|
||||
else datetime.now().isoformat()
|
||||
)
|
||||
|
||||
now_epoch = time.time()
|
||||
checks_total = max(0, self._get_int(previous, "checks_total", 0))
|
||||
|
||||
Reference in new issue
Block a user