From 17e83a408f06fc1fb5fb9f3b87d37aa28732e2cc Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 16 Apr 2007 18:54:56 +0000 Subject: Fix some proposal-104 bugs. svn:r9972 --- src/or/rephist.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/or/rephist.c') diff --git a/src/or/rephist.c b/src/or/rephist.c index 4f18a093e0..c41a334687 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -613,7 +613,7 @@ rep_hist_fill_bandwidth_history(char *buf, size_t len, bw_array_t *b) * history in its descriptor. */ char * -rep_hist_get_bandwidth_lines(void) +rep_hist_get_bandwidth_lines(int for_extrainfo) { char *buf, *cp; char t[ISO_TIME_LEN+1]; @@ -629,7 +629,8 @@ rep_hist_get_bandwidth_lines(void) 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) ", + tor_snprintf(cp, len-(cp-buf), "%s%s %s (%d s) ", + for_extrainfo ? "" : "opt ", r ? "read-history" : "write-history", t, NUM_SECS_BW_SUM_INTERVAL); cp += strlen(cp); -- cgit v1.2.3-54-g00ecf