Skip to content

Commit

Permalink
filter by process name: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
inv2004 committed Mar 18, 2024
1 parent 5d900a6 commit d668ee0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ttop/tui.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit d668ee0

Please sign in to comment.