mirror of
https://github.com/aristocratos/btop.git
synced 2024-05-29 16:50:20 +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
|
//? Get disk/partition stats
|
||||||
for (auto it = disks.begin(); it != disks.end(); ) {
|
for (auto it = disks.begin(); it != disks.end(); ) {
|
||||||
auto &[mountpoint, disk] = *it;
|
auto &[mountpoint, disk] = *it;
|
||||||
if (v_contains(ignore_list, mountpoint)) {
|
if (v_contains(ignore_list, mountpoint) or disk.name == "swap") {
|
||||||
it = disks.erase(it);
|
it = disks.erase(it);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue