{{range .Processes}} {{end}}
PID {{if eq .CurrentSort "pid"}}{{if eq .CurrentOrder "asc"}}↑{{else}}↓{{end}}{{end}} User {{if eq .CurrentSort "user"}}{{if eq .CurrentOrder "asc"}}↑{{else}}↓{{end}}{{end}} Command {{if eq .CurrentSort "cmd"}}{{if eq .CurrentOrder "asc"}}↑{{else}}↓{{end}}{{end}} CPU %{{if eq .CurrentSort "cpu"}}{{if eq .CurrentOrder "asc"}}↑{{else}}↓{{end}}{{end}} Memory {{if eq .CurrentSort "memory"}}{{if eq .CurrentOrder "asc"}}↑{{else}}↓{{end}}{{end}} Kill
{{.PID}} {{.User}} {{.Cmd}} {{printf "%.2f" .CPU}} {{if ge .Memory 1073741824}} {{printf "%.2f GB" (div .Memory 1073741824)}} {{else}} {{printf "%.0f MB" (div .Memory 1048576)}} {{end}}