Increase width of uid field from 4 chars to 5 to allow for range of 16-bit uids.

This commit is contained in:
Karim Kanso
2020-03-10 14:17:37 +00:00
parent 497e87dea7
commit a8b29b4527
2 changed files with 10 additions and 10 deletions

View File

@@ -26,11 +26,11 @@ func (evt PSEvent) String() string {
} }
if evt.PPID == -1 { if evt.PPID == -1 {
return fmt.Sprintf("UID=%-4s PID=%-6d | %s", uid, evt.PID, evt.CMD) return fmt.Sprintf("UID=%-5s PID=%-6d | %s", uid, evt.PID, evt.CMD)
} }
return fmt.Sprintf( return fmt.Sprintf(
"UID=%-4s PID=%-6d PPID=%-6d | %s", uid, evt.PID, evt.PPID, evt.CMD) "UID=%-5s PID=%-6d PPID=%-6d | %s", uid, evt.PID, evt.PPID, evt.CMD)
} }
func NewPSScanner(ppid bool) *PSScanner { func NewPSScanner(ppid bool) *PSScanner {