aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2021-05-25 14:17:12 +0000
committerAlexander Færøy <ahf@torproject.org>2021-05-25 14:17:12 +0000
commit1665d1194263ac595cf6ad24cb38d80c7ec446a5 (patch)
treec40f147606578772d1b8d550a9def32f0160cd2c /src
parentb3d7a56f2a9ed617c6e22c21544a0a6ceb7b2668 (diff)
parent96b59fc4d3486c06d3661adb34a5d32d5ff8e842 (diff)
downloadtor-1665d1194263ac595cf6ad24cb38d80c7ec446a5.tar.gz
tor-1665d1194263ac595cf6ad24cb38d80c7ec446a5.zip
Merge remote-tracking branch 'tor-gitlab/mr/388' into main
Diffstat (limited to 'src')
-rw-r--r--src/feature/stats/rephist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/stats/rephist.c b/src/feature/stats/rephist.c
index 50f6a11ae1..59d5313cc8 100644
--- a/src/feature/stats/rephist.c
+++ b/src/feature/stats/rephist.c
@@ -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;
}