mirror of
https://github.com/DominicBreuker/pspy.git
synced 2025-12-21 03:34:50 +00:00
Increase width of uid field from 4 chars to 5 to allow for range of 16-bit uids.
This commit is contained in:
@@ -26,11 +26,11 @@ func (evt PSEvent) String() string {
|
||||
}
|
||||
|
||||
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(
|
||||
"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 {
|
||||
|
||||
Reference in New Issue
Block a user