mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Merge remote-tracking branch 'tor-gitlab/mr/388' into main
This commit is contained in:
commit
1665d11942
4
changes/bug40394
Normal file
4
changes/bug40394
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
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;
|
return stability_last_downrated + STABILITY_INTERVAL;
|
||||||
|
|
||||||
/* Okay, we should downrate the data. By how much? */
|
/* 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;
|
stability_last_downrated += STABILITY_INTERVAL;
|
||||||
alpha *= STABILITY_ALPHA;
|
alpha *= STABILITY_ALPHA;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user