From a017056ea07f6532b333f3e6f10a023505fb0470 Mon Sep 17 00:00:00 2001 From: aristocratos Date: Tue, 12 Dec 2023 23:05:07 +0100 Subject: [PATCH] Added swap to ignore for statvfs() since it will always fail --- src/linux/btop_collect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linux/btop_collect.cpp b/src/linux/btop_collect.cpp index a9bdc50..33a0be8 100644 --- a/src/linux/btop_collect.cpp +++ b/src/linux/btop_collect.cpp @@ -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; }