mirror of
https://github.com/aristocratos/btop.git
synced 2026-01-24 22:13:30 -05:00
Added swap to ignore for statvfs() since it will always fail
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user