aboutsummaryrefslogtreecommitdiff
path: root/src/or/rephist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-08-20 15:59:31 +0000
committerNick Mathewson <nickm@torproject.org>2007-08-20 15:59:31 +0000
commit9958dc8d5375b88cb6d07b168ff09a8d76acaa8e (patch)
treed8ccec6f38be2abb5f61dbe0b0f3e4439db2e826 /src/or/rephist.c
parentd3b019a1df1b821cf4634ee289ec3d47d74c9a2a (diff)
downloadtor-9958dc8d5375b88cb6d07b168ff09a8d76acaa8e.tar
tor-9958dc8d5375b88cb6d07b168ff09a8d76acaa8e.tar.gz
r14729@catbus: nickm | 2007-08-20 11:58:02 -0400
Trigger load and save of MTBF data. svn:r11219
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r--src/or/rephist.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 3228d24a3..a74a28315 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -519,11 +519,17 @@ rep_hist_record_mtbf_data(const char *filename)
smartlist_add(lines, tor_strdup("format 1\n"));
+ format_iso_time(time_buf, time(NULL));
+ tor_snprintf(buf, sizeof(buf), "stored-at %s\n", time_buf);
+ smartlist_add(lines, tor_strdup(buf));
+
if (stability_last_downrated) {
format_iso_time(time_buf, stability_last_downrated);
tor_snprintf(buf, sizeof(buf), "last-downrated %s\n", time_buf);
smartlist_add(lines, tor_strdup(buf));
}
+
+
smartlist_add(lines, tor_strdup("data\n"));
for (orhist_it = digestmap_iter_init(history_map);