pcounters, ptotals -> counters, totals.
Use fixed_buffer for the proctitle formatting.
Print "..." only if there's dotdotdot.
Tweak error messages.
%i while valid is a bit unusual.