From d668ee04e8fd90c94eef7768bbb71a53ecb14f15 Mon Sep 17 00:00:00 2001 From: inv2004 <> Date: Tue, 19 Mar 2024 02:43:04 +0300 Subject: [PATCH] filter by process name: fix --- src/ttop/tui.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ttop/tui.nim b/src/ttop/tui.nim index 82e6413..8f00c92 100644 --- a/src/ttop/tui.nim +++ b/src/ttop/tui.nim @@ -262,8 +262,10 @@ proc checkFilter(filter: string, p: PidInfo): bool = elif fWord.startsWith("#"): if fWord[1..^1] notin p.docker: result = true - elif fWord notin $p.pid and fWord notin toLowerAscii(p.cmd) and fWord notin - toLowerAscii(p.docker): + elif fWord notin $p.pid and + fWord notin toLowerAscii(p.cmd) and + fWord notin toLowerAscii(p.name) and + fWord notin toLowerAscii(p.docker): result = true proc table(tui: Tui, tb: var TerminalBuffer, pi: OrderedTableRef[uint, PidInfo],