mirror of
https://github.com/aristocratos/btop.git
synced 2024-05-21 04:43:36 +12:00
Address comment
This commit is contained in:
parent
bb40de64c9
commit
c1675634ef
|
@ -1474,7 +1474,7 @@ namespace Proc {
|
|||
width_left -= (ulen(p.name) + 1);
|
||||
}
|
||||
if (width_left > 7) {
|
||||
const string& cmd = width_left > 40 ? p.cmd : p.short_cmd;
|
||||
const string& cmd = width_left > 40 ? rtrim(p.cmd) : p.short_cmd;
|
||||
if (not cmd.empty() and cmd != p.name) {
|
||||
out += g_color + '(' + uresize(cmd, width_left - 3, p_wide_cmd[p.pid]) + ") ";
|
||||
width_left -= (ulen(cmd, true) + 3);
|
||||
|
|
Loading…
Reference in a new issue