proc/list: use fixed-width columns instead of tabs
This commit is contained in:
parent
0fed1aa124
commit
dc26871bdc
|
|
@ -430,7 +430,7 @@ func (st *State) ListProcsForAgent(agentID string) string {
|
|||
tool := p.Tool
|
||||
cmd := p.Cmd
|
||||
p.mu.Unlock()
|
||||
fmt.Fprintf(&buf, "%d\t%s\t%s\t%s\n", pid, state, tool, cmd)
|
||||
fmt.Fprintf(&buf, "%-6d %-12s %-16s %s\n", pid, state, tool, cmd)
|
||||
}
|
||||
return buf.String()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue