Skip to content

Commit

Permalink
Added swap to ignore for statvfs() since it will always fail
Browse files Browse the repository at this point in the history
  • Loading branch information
aristocratos committed Dec 12, 2023
1 parent e770ccc commit a017056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux/btop_collect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a017056

Please sign in to comment.