mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-10 14:34:41 +12:00
don't show /dev
This commit is contained in:
parent
d901bbebd9
commit
5ac8fa4c8a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue