Skip to content

Commit 823f383

Browse files
committed
hide user on windows... don't even try to compute
1 parent e596075 commit 823f383

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

frontend/app/view/processviewer/processviewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ const Columns: ColDef[] = [
470470
{ key: "pid", label: "PID", width: "70px", align: "right" },
471471
{ key: "command", label: "Command", width: "minmax(120px, 4fr)" },
472472
{ key: "status", label: "Status", width: "75px", hideOnPlatform: ["windows", "darwin"] },
473-
{ key: "user", label: "User", width: "80px" },
473+
{ key: "user", label: "User", width: "80px", hideOnPlatform: ["windows"] },
474474
{ key: "threads", label: "NT", tooltip: "Num Threads", width: "40px", align: "right", hideOnPlatform: ["windows"] },
475475
{ key: "cpu", label: "CPU%", width: "70px", align: "right" },
476476
{ key: "mem", label: "Memory", width: "90px", align: "right" },

pkg/wshrpc/wshremote/processviewer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ func (s *procCacheState) runLoop(firstReadyCh chan struct{}) {
220220
// lookupUID resolves a uid to a username, using the per-run cache to avoid
221221
// repeated syscalls for the same uid.
222222
func (s *procCacheState) lookupUID(uid uint32) string {
223+
if runtime.GOOS == "windows" {
224+
return ""
225+
}
223226
if s.uidCache == nil {
224227
s.uidCache = make(map[uint32]string)
225228
}

0 commit comments

Comments
 (0)