Skip to content
Discussion options

You must be logged in to vote

The monitor stores every event in a SQLite DB with a strict timestamp column. Real‑time streams are processed by the agent_listener thread, which writes directly to the DB and also updates an in‑memory pandas.DataFrame cache. When a historical query runs, the code reads from the same DB and merges the result with the cache, using the timestamp to de‑duplicate rows (newer records win). This guarantees that live updates are immediately visible in subsequent historical reads while preserving a consistent chronological view.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hoangsonww
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants