class PSTree::ProcStruct
def initialize(ppid, pid, user, cmd)
def initialize(ppid, pid, user, cmd) @ppid, @pid, @user, @cmd = ppid.to_i, pid.to_i, user, cmd end
def to_s
def to_s "%05u %s (%s)" % [ pid, cmd, user ] end
def initialize(ppid, pid, user, cmd) @ppid, @pid, @user, @cmd = ppid.to_i, pid.to_i, user, cmd end
def to_s "%05u %s (%s)" % [ pid, cmd, user ] end