1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-16 04:02:15 +00:00

fix for #208, clear the "set" flag on fs_stats entries periodically

This commit is contained in:
quiescens 2024-08-29 13:57:25 +10:00 committed by Brenden Matthews
parent 03711ea5e5
commit 788ac88b31

View File

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