mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
list total traffic and total uptime in -usr1 stats
svn:r2151
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user