Skip to content

Commit

Permalink
fix for #208, clear the "set" flag on fs_stats entries periodically
Browse files Browse the repository at this point in the history
  • Loading branch information
quiescens committed Aug 29, 2024
1 parent c428663 commit 756f944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 756f944

Please sign in to comment.