From: Roger Dingledine Date: Fri, 6 Aug 2004 08:37:13 +0000 (+0000) Subject: list total traffic and total uptime in -usr1 stats X-Git-Tag: tor-0.0.8pre3~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f32e34044fa5cbee5164fe6de8474bc38ad66098;p=thirdparty%2Ftor.git list total traffic and total uptime in -usr1 stats svn:r2151 --- diff --git a/src/or/main.c b/src/or/main.c index 8f01b4f310..573b20fc92 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -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);