diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-04-16 18:54:56 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-04-16 18:54:56 +0000 |
commit | 17e83a408f06fc1fb5fb9f3b87d37aa28732e2cc (patch) | |
tree | daba5586891fb30c56d8d298a8fc965d34df0b58 /src/or/rephist.c | |
parent | 6d32d9cb2d65c7851d87010e8971ddc271aa031b (diff) | |
download | tor-17e83a408f06fc1fb5fb9f3b87d37aa28732e2cc.tar.gz tor-17e83a408f06fc1fb5fb9f3b87d37aa28732e2cc.zip |
Fix some proposal-104 bugs.
svn:r9972
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r-- | src/or/rephist.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |