don't show /dev

This commit is contained in:
Jos Dehaes 2021-10-06 18:56:13 +02:00
parent d901bbebd9
commit 5ac8fa4c8a

View file

@ -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;