Stop presenting stale data as live, and back off broken devices
- readings.py: PowerReadings.total now sums the known parts (None only when nothing is known), with a complete property saying whether it under-counts; the snapshot exposes it as partial and the web UI marks it with a tilde. - display/service.py: telemetry older than 15 s is drawn as -- instead of re-rendering frozen readings as if they were current. - sensors.py: Commander PRO last-known RPMs expire after 10 s instead of feeding the power model forever (empty list = unknown); a runtime MSR failure backs off 15 s instead of re-opening PawnIO every second; GPU NVML reconnects back off 10 s instead of nvmlInit() every second, and the sample-buffer timestamp resets on a driver-reset reconnect. - control.py: CpuTemperature read failures back off 15 s instead of churning the MSR handle every poll.
This commit is contained in:
1 parent
538a464257
commit
9036c6e734
6 files changed
+46
-7
No files matched your search
@@ -441,7 +441,8 @@ function drawCurves(state) {
|
||||
/* ------------------------------------------------------------------ render: header & system */
|
||||
|
||||
function renderHeader(s) {
|
||||
setText("hero-total", fmt.n0(s.telemetry.power?.total));
|
||||
const power = s.telemetry.power;
|
||||
setText("hero-total", (power?.partial ? "≈" : "") + fmt.n0(power?.total));
|
||||
const meta = $("meta");
|
||||
const elevated = s.app.token?.elevated;
|
||||
meta.replaceChildren(
|
||||
|
||||
Reference in new issue
Block a user