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:
parent
03711ea5e5
commit
788ac88b31
@ -79,7 +79,7 @@ int update_fs_stats() {
|
|||||||
if (current_update_time - last_fs_update < 13) { return 0; }
|
if (current_update_time - last_fs_update < 13) { return 0; }
|
||||||
|
|
||||||
for (i = 0; i < MAX_FS_STATS; ++i) {
|
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;
|
last_fs_update = current_update_time;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user