mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
even better, only print extend attempts if there are any.
svn:r2285
This commit is contained in:
parent
a447570036
commit
20b8819023
@ -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,
|
or_history->n_conn_ok, or_history->n_conn_fail+or_history->n_conn_ok,
|
||||||
upt, upt+downt, uptime*100.0);
|
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: ");
|
strcpy(buffer, " Good extend attempts: ");
|
||||||
else
|
|
||||||
*buffer = '\0';
|
|
||||||
len = strlen(buffer);
|
len = strlen(buffer);
|
||||||
for (lhist_it = strmap_iter_init(or_history->link_history_map);
|
for (lhist_it = strmap_iter_init(or_history->link_history_map);
|
||||||
!strmap_iter_done(lhist_it);
|
!strmap_iter_done(lhist_it);
|
||||||
@ -291,6 +289,7 @@ void rep_hist_dump_stats(time_t now, int severity)
|
|||||||
}
|
}
|
||||||
log(severity, buffer);
|
log(severity, buffer);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
Loading…
Reference in New Issue
Block a user