summaryrefslogtreecommitdiffstats
path: root/src/osx
diff options
context:
space:
mode:
authorJos Dehaes <jos.dehaes@gmail.com>2021-10-08 00:11:08 +0200
committerJos Dehaes <jos.dehaes@gmail.com>2021-10-08 00:21:55 +0200
commitc8b50ed4883103f66c9ed869fd0252d48f18f58f (patch)
treeb6ba303d534b0fd2e5279421fb1d75da458372c7 /src/osx
parentc4df64d4409c511847d76b37a0794b8bb4f6942d (diff)
don't show autofs, it's useless
Diffstat (limited to 'src/osx')
-rw-r--r--src/osx/btop_collect.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/osx/btop_collect.cpp b/src/osx/btop_collect.cpp
index 82c67bf..d0abdf7 100644
--- a/src/osx/btop_collect.cpp
+++ b/src/osx/btop_collect.cpp
@@ -557,7 +557,9 @@ namespace Mem {
std::error_code ec;
string mountpoint = stfs[i].f_mntonname;
string dev = stfs[i].f_mntfromname;
- disks[mountpoint] = disk_info{fs::canonical(dev, ec), fs::path(mountpoint).filename()};
+ if (string(stfs[i].f_fstypename) == "autofs") {
+ continue;
+ }
//? Match filter if not empty
if (not filter.empty()) {
@@ -565,6 +567,7 @@ namespace Mem {
if ((filter_exclude and match) or (not filter_exclude and not match))
continue;
}
+ disks[mountpoint] = disk_info{fs::canonical(dev, ec), fs::path(mountpoint).filename()};
found.push_back(mountpoint);
if (not v_contains(last_found, mountpoint))
@@ -963,7 +966,6 @@ namespace Proc {
}
while (cmp_greater(detailed.mem_bytes.size(), width)) detailed.mem_bytes.pop_front();
-
}
//* Collects and sorts process information from /proc