]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Increase bandwidth usage report interval to 4 hours.
authorNick Mathewson <nickm@torproject.org>
Mon, 22 Dec 2014 17:24:13 +0000 (12:24 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 22 Dec 2014 17:24:13 +0000 (12:24 -0500)
changes/bug13988 [new file with mode: 0644]
src/or/rephist.c

diff --git a/changes/bug13988 b/changes/bug13988
new file mode 100644 (file)
index 0000000..e816335
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (statistics):
+    - Increase period over which bandwidth observations are aggregated
+      from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
index 72de54c0c926953ec306a7afb80d4765f44b2479..cedc56af0755b20f3da3f4742ddec142c6773b02 100644 (file)
@@ -1131,9 +1131,7 @@ rep_hist_load_mtbf_data(time_t now)
  * totals? */
 #define NUM_SECS_ROLLING_MEASURE 10
 /** How large are the intervals for which we track and report bandwidth use? */
-/* XXXX Watch out! Before Tor 0.2.2.21-alpha, using any other value here would
- * generate an unparseable state file. */
-#define NUM_SECS_BW_SUM_INTERVAL (15*60)
+#define NUM_SECS_BW_SUM_INTERVAL (4*60*60)
 /** How far in the past do we remember and publish bandwidth use? */
 #define NUM_SECS_BW_SUM_IS_VALID (24*60*60)
 /** How many bandwidth usage intervals do we remember? (derived) */