Skip to content

Commit

Permalink
Strip microseconds from old messages' age.
Browse files Browse the repository at this point in the history
  • Loading branch information
kfindeisen committed Jul 15, 2024
1 parent 0ab93ca commit 553c20d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ async def main() -> None:
# efdStamp is visit publication, in seconds since 1970-01-01 UTC
if next_visit_message_initial["message"]["private_efdStamp"]:
published = next_visit_message_initial["message"]["private_efdStamp"]
age = time.time() - published
age = round(time.time() - published) # Microsecond precision is distracting
if age > expire:
logging.warning("Message published on %s UTC is %s old, ignoring.",
time.ctime(published),
Expand Down

0 comments on commit 553c20d

Please sign in to comment.