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
Loading
Loading
Loading
Loading
+2 −1
Changes for src/or/main.c: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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);