Added swap to ignore for statvfs() since it will always fail

This commit is contained in:
aristocratos 2023-12-12 23:05:07 +01:00
parent e770cccaf8
commit a017056ea0

View file

@ -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;
}