Skip to content
Snippets Groups Projects
Commit f32e3404 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

list total traffic and total uptime in -usr1 stats

svn:r2151
parent 1d41c0ee
No related merge requests found
......@@ -963,7 +963,8 @@ static void dumpstats(int severity) {
(stats_n_data_cells_received*RELAY_PAYLOAD_SIZE)) );
if (stats_n_seconds_uptime)
log(severity,"Average bandwidth used: %d bytes/sec",
log(severity,"Average bandwidth used: %d/%d = %d bytes/sec",
stats_n_bytes_read, stats_n_seconds_uptime,
(int) (stats_n_bytes_read/stats_n_seconds_uptime));
rep_hist_dump_stats(now,severity);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment