Skip to content

v0.1.14 — fix stale temp/power readings

Choose a tag to compare

@abarbarich abarbarich released this 29 Aug 09:06
· 6 commits to main since this release
Immutable release. Only release title and notes can be modified.

Fixes stale CPU/NVMe temperature and power badges, and empty History
graphs for CPU Temperature/Power.

Root cause: the hourly timeseries retention prune filtered on ts
alone, but the only index was (series_key, ts) — unusable for that
query, so every prune did a full table scan. As the table grew this
became slow enough to occasionally hit SQLITE_FULL on writes, and
because better-sqlite3 runs synchronously, could stall the concurrent
SSH temperature-poll loop long enough to freeze its in-memory cache
indefinitely.

Fix: adds a dedicated index on ts so pruning is an indexed range
delete, and checkpoints the WAL after pruning so reclaimed space is
actually released.