浏览代码

Keep track of a whole day of bandwidth, not just 12 hrs

svn:r2168
Nick Mathewson 21 年之前
父节点
当前提交
bed5696185
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/rephist.c

+ 1 - 1
src/or/rephist.c

@@ -310,7 +310,7 @@ void write_rep_history(const char *filename)
 #endif
 
 #define NUM_SECS_ROLLING_MEASURE 10
-#define NUM_SECS_BW_SUM_IS_VALID (12*60*60) /* half a day */
+#define NUM_SECS_BW_SUM_IS_VALID (24*60*60) /* one day */
 #define NUM_SECS_BW_SUM_INTERVAL (15*60)
 #define NUM_TOTALS (NUM_SECS_BW_SUM_IS_VALID/NUM_SECS_BW_SUM_INTERVAL)