mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
r18288@catbus: nickm | 2008-02-20 21:18:38 -0500
Recover from bad tracked-since value in mtbf history file. This may finally close bug 537. svn:r13636
This commit is contained in:
parent
0e9dcfab97
commit
ae507a61cc
@ -59,6 +59,8 @@ Changes in version 0.2.0.20-?? - 2008-02-??
|
||||
directory request. Now compare correctly. Noticed by Veracode.
|
||||
- When starting as an authority, do not overwrite all certificates
|
||||
cached from other authorities. Bugfix on 0.2.0.x. Fixes bug 606.
|
||||
- Recover from bad tracked-since value in MTBF-history file.
|
||||
Should fix bug 537.
|
||||
|
||||
o Code simplifications and refactoring:
|
||||
- Remove the tor_strpartition function: its logic was confused,
|
||||
|
@ -954,7 +954,7 @@ rep_hist_load_mtbf_data(time_t now)
|
||||
if (strcmp(line, "."))
|
||||
log_warn(LD_GENERAL, "Truncated MTBF file.");
|
||||
|
||||
if (!tracked_since)
|
||||
if (tracked_since < 86400*365) /* Recover from insanely early value. */
|
||||
tracked_since = latest_possible_start;
|
||||
|
||||
stability_last_downrated = last_downrated;
|
||||
|
Loading…
Reference in New Issue
Block a user