mirror of
https://github.com/aristocratos/btop.git
synced 2024-05-15 18:03:06 +12:00
Added swap to ignore for statvfs() since it will always fail
This commit is contained in:
parent
e770cccaf8
commit
a017056ea0
|
@ -1755,7 +1755,7 @@ namespace Mem {
|
|||
//? Get disk/partition stats
|
||||
for (auto it = disks.begin(); it != disks.end(); ) {
|
||||
auto &[mountpoint, disk] = *it;
|
||||
if (v_contains(ignore_list, mountpoint)) {
|
||||
if (v_contains(ignore_list, mountpoint) or disk.name == "swap") {
|
||||
it = disks.erase(it);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue