From 482734766a207195a9905c400578841b6f104ba4 Mon Sep 17 00:00:00 2001 From: 0xJoeMama <0xjoemama@gmail.com> Date: Sun, 29 May 2022 16:09:55 +0300 Subject: [PATCH] Finished kernel proc filtering. --- 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 7a0fe8b..d55c8b8 100644 --- a/src/linux/btop_collect.cpp +++ b/src/linux/btop_collect.cpp @@ -1267,7 +1267,7 @@ namespace Proc { static void clear_kernel_cache() { static size_t latest_clear_time = 0; - if (latest_clear_time >= static_cast(Config::getI("update_ms") * 100)) { + if (latest_clear_time >= 256) { kernels_procs.clear(); latest_clear_time = 0; }