summaryrefslogtreecommitdiffstats
path: root/src/freebsd
diff options
context:
space:
mode:
authorabrasumente <345396594@qq.com>2022-05-01 01:08:27 +0800
committerabrasumente <345396594@qq.com>2022-05-01 01:08:27 +0800
commitabc4fb25c3183b18283f2f1e0b9cb6091ef85dc9 (patch)
treea691fccb5264f1037d22b3ff166d3828ed284563 /src/freebsd
parent0f117a0273271f45908485ea1eebfefd31afee4b (diff)
Added: Case insensitive process filtering
Diffstat (limited to 'src/freebsd')
-rw-r--r--src/freebsd/btop_collect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freebsd/btop_collect.cpp b/src/freebsd/btop_collect.cpp
index 1cf7a1e..7c6c07c 100644
--- a/src/freebsd/btop_collect.cpp
+++ b/src/freebsd/btop_collect.cpp
@@ -1317,7 +1317,7 @@ namespace Proc {
filter_found = 0;
for (auto &p : current_procs) {
if (not tree and not filter.empty()) {
- if (not s_contains(to_string(p.pid), filter) and not s_contains(p.name, filter) and not s_contains(p.cmd, filter) and not s_contains(p.user, filter)) {
+ if (not s_contains_ic(to_string(p.pid), filter) and not s_contains_ic(p.name, filter) and not s_contains_ic(p.cmd, filter) and not s_contains_ic(p.user, filter)) {
p.filtered = true;
filter_found++;
} else {