From 756f944a539ce24ee830df0d8f4b211f8b9c5dcb Mon Sep 17 00:00:00 2001 From: quiescens Date: Thu, 29 Aug 2024 13:57:25 +1000 Subject: [PATCH] fix for #208, clear the "set" flag on fs_stats entries periodically --- src/fs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs.cc b/src/fs.cc index 061ef5ac9..7593d9947 100644 --- a/src/fs.cc +++ b/src/fs.cc @@ -79,7 +79,7 @@ int update_fs_stats() { if (current_update_time - last_fs_update < 13) { return 0; } for (i = 0; i < MAX_FS_STATS; ++i) { - if (fs_stats[i].set != 0) { update_fs_stat(&fs_stats[i]); } + fs_stats[i].set = 0; } last_fs_update = current_update_time; return 0;