even better, only print extend attempts if there are any.

svn:r2285
This commit is contained in:
Roger Dingledine 2004-08-18 09:57:50 +00:00
parent a447570036
commit 20b8819023

View File

@ -266,10 +266,8 @@ 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);
@ -291,6 +289,7 @@ void rep_hist_dump_stats(time_t now, int severity)
}
log(severity, buffer);
}
}
}
#if 0