History

Format Windows process diagnostics parser

Cursor Agent committed 4 months ago

Commit 0bb0f531 parent f3da91a1 file · +2 −1Browse files

Unified · Split

apps/server/src/diagnostics/ProcessDiagnostics.ts+2−1
@@ -235,7 +235,8 @@ function normalizeWindowsProcessRow(value: unknown): Option.Option<ProcessRow> { · 234 unmodified lines
235 pgid: null,235 pgid: null,
236 status: Option.getOrElse(nonEmptyStringOption(record.Status), () => "Live"),236 status: Option.getOrElse(nonEmptyStringOption(record.Status), () => "Live"),
237 cpuPercent:237 cpuPercent:
238 typeof record.PercentProcessorTime === "number" && Number.isFinite(record.PercentProcessorTime)238 typeof record.PercentProcessorTime === "number" &&
239 Number.isFinite(record.PercentProcessorTime)
239 ? Math.max(0, record.PercentProcessorTime)240 ? Math.max(0, record.PercentProcessorTime)
240 : 0,241 : 0,
241 rssBytes:242 rssBytes:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t