Skip to content

Fix #1048: show "Other: n/a" instead of "Other: 0%" on Linux#1062

Merged
erikdarlingdata merged 1 commit into
devfrom
feature/1048-cpu-detail-na-linux
Jun 5, 2026
Merged

Fix #1048: show "Other: n/a" instead of "Other: 0%" on Linux#1062
erikdarlingdata merged 1 commit into
devfrom
feature/1048-cpu-detail-na-linux

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

What

On Linux, the alert engine correctly returns host/other-process CPU as NULL (no DMV exposes true host CPU there; SystemIdle is always 0 in RING_BUFFER_SCHEDULER_MONITOR). CpuDisplayText already drops the Other figure on Linux, but CpuDetailText coalesced the NULL to 0, rendering a misleading "Other: 0%" that reads as a real zero measurement.

This branches CpuDetailText on .HasValue so a missing value renders "n/a", matching the honest treatment already in CpuDisplayText.

Why

Follow-up to #1055. The reporter (running SQL Server on OpenSUSE) confirmed the alert no longer fires, then asked whether "Other: 0%" was a real reading or a placeholder. It was a placeholder — this makes the UI say so.

Scope

  • Single file: Dashboard/Models/ServerHealthStatus.cs
  • No query change, no datatype change. The value stays int?/NULL end to end; only the final display string differs.
  • Dashboard-only; no schema or installer impact.

Testing

Builds clean (0 warnings, 0 errors). Runtime path is a display-string branch; not runtime-tested (no Linux SQL host available locally).

🤖 Generated with Claude Code

On Linux the alert engine returns host/other-process CPU as NULL (no DMV
exposes true host CPU there; SystemIdle is always 0). CpuDisplayText already
drops the Other figure, but CpuDetailText coalesced the NULL to 0, rendering
a misleading "Other: 0%" that reads as a real zero measurement.

Branch on .HasValue so a missing value renders "n/a", matching the honest
treatment in CpuDisplayText. No query or datatype change; the value stays
int?/NULL and only the final display string differs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 1baaa17 into dev Jun 5, 2026
2 checks passed
@erikdarlingdata erikdarlingdata deleted the feature/1048-cpu-detail-na-linux branch June 5, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant