mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-28 14:11:35 +02: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 New Issue
Block a user