Format Windows process diagnostics parser
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
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:
|
||||
|
||||
Reference in new issue
Block a user