[or-cvs] list total traffic and total uptime in -usr1 stats
Roger Dingledine
arma at seul.org
Fri Aug 6 08:37:15 UTC 2004
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
main.c
Log Message:
list total traffic and total uptime in -usr1 stats
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.309
retrieving revision 1.310
diff -u -d -r1.309 -r1.310
--- main.c 4 Aug 2004 06:49:17 -0000 1.309
+++ main.c 6 Aug 2004 08:37:13 -0000 1.310
@@ -963,7 +963,8 @@
(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);
More information about the tor-commits
mailing list