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:
Nick Mathewson 2008-02-21 02:18:41 +00:00
parent 0e9dcfab97
commit ae507a61cc
2 changed files with 3 additions and 1 deletions

View File

@ -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,

View File

@ -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;