mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix the fencepost issue when we check stability_last_downrated
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user