diff options
Diffstat (limited to 'src')
-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 c94b19fa15..603077ce5d 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -266,9 +266,10 @@ void rep_hist_dump_stats(time_t now, int severity) or_history->n_conn_ok, or_history->n_conn_fail+or_history->n_conn_ok, upt, upt+downt, uptime*100.0); - if (!strmap_isempty(or_history->link_history_map)) { + if (!strmap_isempty(or_history->link_history_map)) strcpy(buffer, " Good extend attempts: "); - } + else + *buffer = '\0'; len = strlen(buffer); for (lhist_it = strmap_iter_init(or_history->link_history_map); !strmap_iter_done(lhist_it); |