mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
log bytes written with kill -USR1 too
svn:r3112
This commit is contained in:
parent
012255fe60
commit
29a8e80326
@ -997,12 +997,18 @@ static void dumpstats(int severity) {
|
||||
100*(((double)stats_n_data_bytes_received) /
|
||||
(stats_n_data_cells_received*RELAY_PAYLOAD_SIZE)) );
|
||||
|
||||
if (stats_n_seconds_uptime)
|
||||
if (stats_n_seconds_uptime) {
|
||||
log(severity,
|
||||
"Average bandwidth used: "U64_FORMAT"/%ld = %d bytes/sec",
|
||||
"Average bandwidth: "U64_FORMAT"/%ld = %d bytes/sec reading",
|
||||
U64_PRINTF_ARG(stats_n_bytes_read),
|
||||
stats_n_seconds_uptime,
|
||||
(int) (stats_n_bytes_read/stats_n_seconds_uptime));
|
||||
log(severity,
|
||||
"Average bandwidth: "U64_FORMAT"/%ld = %d bytes/sec writing",
|
||||
U64_PRINTF_ARG(stats_n_bytes_written),
|
||||
stats_n_seconds_uptime,
|
||||
(int) (stats_n_bytes_written/stats_n_seconds_uptime));
|
||||
}
|
||||
|
||||
rep_hist_dump_stats(now,severity);
|
||||
rend_service_dump_stats(severity);
|
||||
|
Loading…
Reference in New Issue
Block a user