Skip to content
Snippets Groups Projects
Commit 96b59fc4 authored by Neel Chauhan's avatar Neel Chauhan
Browse files

Fix the fencepost issue when we check stability_last_downrated

parent e247aab4
No related branches found
No related tags found
No related merge requests found
o Minor bugfixes (statistics):
- Fix the fencepost issue when we check stability_last_downrated where
we call rep_hist_downrate_old_runs() twice. Fixes bug 40394; bugfix
on 0.2.0.5-alpha. Patch by Neel Chauhan.
......@@ -731,7 +731,7 @@ rep_hist_downrate_old_runs(time_t now)
return stability_last_downrated + STABILITY_INTERVAL;
/* Okay, we should downrate the data. By how much? */
while (stability_last_downrated + STABILITY_INTERVAL < now) {
while (stability_last_downrated + STABILITY_INTERVAL <= now) {
stability_last_downrated += STABILITY_INTERVAL;
alpha *= STABILITY_ALPHA;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment