aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-11-23 09:01:37 +0000
committerRoger Dingledine <arma@torproject.org>2004-11-23 09:01:37 +0000
commit921c40abe71707ca04eb99b63cf0234580b3d551 (patch)
tree948e05a1398db234e4bd11d314a889b714679c80 /src
parent57a392d8d8676ee4909c7662129cfcd1e7430ff2 (diff)
downloadtor-921c40abe71707ca04eb99b63cf0234580b3d551.tar
tor-921c40abe71707ca04eb99b63cf0234580b3d551.tar.gz
fail more gracefully next time
svn:r2954
Diffstat (limited to 'src')
-rw-r--r--src/or/rephist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 1dea9fa85..72a9f4a81 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -588,6 +588,7 @@ rep_hist_get_bandwidth_lines(void)
cp = buf;
for (r=0;r<2;++r) {
b = r?read_array:write_array;
+ tor_assert(b);
format_iso_time(t, b->next_period-NUM_SECS_BW_SUM_INTERVAL);
tor_snprintf(cp, len-(cp-buf), "opt %s %s (%d s) ", r?"read-history ":"write-history", t,
NUM_SECS_BW_SUM_INTERVAL);