Skip to content

Commit 788ac88

Browse files
quiescensbrndnmtthws
authored andcommitted
fix for #208, clear the "set" flag on fs_stats entries periodically
1 parent 03711ea commit 788ac88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fs.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ int update_fs_stats() {
7979
if (current_update_time - last_fs_update < 13) { return 0; }
8080

8181
for (i = 0; i < MAX_FS_STATS; ++i) {
82-
if (fs_stats[i].set != 0) { update_fs_stat(&fs_stats[i]); }
82+
fs_stats[i].set = 0;
8383
}
8484
last_fs_update = current_update_time;
8585
return 0;

0 commit comments

Comments
 (0)