Format Windows process diagnostics parser

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Cursor AgentandJulius Marminge committed 2026-06-29 16:13:09 +00:00
1 parent f3da91a0d7
commit 0bb0f53822
1 file changed
+2 -1
@@ -235,7 +235,8 @@ function normalizeWindowsProcessRow(value: unknown): Option.Option<ProcessRow> {
pgid: null,
status: Option.getOrElse(nonEmptyStringOption(record.Status), () => "Live"),
cpuPercent:
typeof record.PercentProcessorTime === "number" && Number.isFinite(record.PercentProcessorTime)
typeof record.PercentProcessorTime === "number" &&
Number.isFinite(record.PercentProcessorTime)
? Math.max(0, record.PercentProcessorTime)
: 0,
rssBytes: