ソースを参照

list total traffic and total uptime in -usr1 stats

svn:r2151
Roger Dingledine 21 年 前
コミット
f32e34044f
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/or/main.c

+ 2 - 1
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);