mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 06:33:44 +01:00
fail more gracefully next time
svn:r2954
This commit is contained in:
parent
57a392d8d8
commit
921c40abe7
@ -588,6 +588,7 @@ rep_hist_get_bandwidth_lines(void)
|
|||||||
cp = buf;
|
cp = buf;
|
||||||
for (r=0;r<2;++r) {
|
for (r=0;r<2;++r) {
|
||||||
b = r?read_array:write_array;
|
b = r?read_array:write_array;
|
||||||
|
tor_assert(b);
|
||||||
format_iso_time(t, b->next_period-NUM_SECS_BW_SUM_INTERVAL);
|
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,
|
tor_snprintf(cp, len-(cp-buf), "opt %s %s (%d s) ", r?"read-history ":"write-history", t,
|
||||||
NUM_SECS_BW_SUM_INTERVAL);
|
NUM_SECS_BW_SUM_INTERVAL);
|
||||||
|
Loading…
Reference in New Issue
Block a user