aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-21 02:18:41 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-21 02:18:41 +0000
commitae507a61cc08951a68f6be589d40c25b4977517a (patch)
tree1bcee01b303e011b99276021a5b1e97af906a907 /src
parent0e9dcfab97de3c9d9f608deb67bcdc866ae52c93 (diff)
downloadtor-ae507a61cc08951a68f6be589d40c25b4977517a.tar.gz
tor-ae507a61cc08951a68f6be589d40c25b4977517a.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/or/rephist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 76b14247aa..f431c81228 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -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;