summaryrefslogtreecommitdiffstats
path: root/src/osx
diff options
context:
space:
mode:
authorJos Dehaes <jos.dehaes@gmail.com>2021-10-06 18:56:13 +0200
committerJos Dehaes <jos.dehaes@gmail.com>2021-10-06 18:56:32 +0200
commit5ac8fa4c8a8f73efac6ac1f15e458ed3b2c1164b (patch)
treedfc02006b52b0ffcdbc1c775e52fd12bf7e02b3d /src/osx
parentd901bbebd94ec45c45431fcd1ab37a974f783d9b (diff)
don't show /dev
Diffstat (limited to 'src/osx')
-rw-r--r--src/osx/btop_collect.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/osx/btop_collect.cpp b/src/osx/btop_collect.cpp
index 89b4dc0..40ec8a4 100644
--- a/src/osx/btop_collect.cpp
+++ b/src/osx/btop_collect.cpp
@@ -16,13 +16,8 @@ indent = tab
tab-size = 4
*/
-#include <CoreFoundation/CoreFoundation.h>
-#include <IOKit/IOCFSerialize.h>
-#include <IOKit/IOMessage.h>
#include <IOKit/ps/IOPSKeys.h>
#include <IOKit/ps/IOPowerSources.h>
-#include <IOKit/pwr_mgt/IOPM.h>
-#include <IOKit/pwr_mgt/IOPMLib.h>
#include <arpa/inet.h>
#include <ifaddrs.h>
#include <libproc.h>
@@ -627,7 +622,7 @@ namespace Mem {
disks.at("swap").free_percent = mem.percent.at("swap_free").back();
}
for (const auto &name : last_found)
- if (not is_in(name, "/", "swap"))
+ if (not is_in(name, "/", "swap", "/dev"))
mem.disks_order.push_back(name);
old_uptime = uptime;