aboutsummaryrefslogtreecommitdiff
path: root/src/or/rephist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-12-11 16:54:11 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-11 16:54:11 -0500
commitbc1ea4f470734f7fa22949318a98e286da5cba49 (patch)
tree824af3b85082f81f85fddc9382f5cbdc426bb25f /src/or/rephist.c
parentf97f301b5b5605f559522ffae2159fc4d061817c (diff)
parentf5d4bdf305d2341f7ff531fc9c8ed08511bd503d (diff)
downloadtor-bc1ea4f470734f7fa22949318a98e286da5cba49.tar.gz
tor-bc1ea4f470734f7fa22949318a98e286da5cba49.zip
Merge branch 'maint-0.2.5' into maint-0.2.8
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r--src/or/rephist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 04ed7aef0f..651fd43ade 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -1131,9 +1131,9 @@ 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? */
-#define NUM_SECS_BW_SUM_INTERVAL (4*60*60)
+#define NUM_SECS_BW_SUM_INTERVAL (24*60*60)
/** How far in the past do we remember and publish bandwidth use? */
-#define NUM_SECS_BW_SUM_IS_VALID (24*60*60)
+#define NUM_SECS_BW_SUM_IS_VALID (5*24*60*60)
/** How many bandwidth usage intervals do we remember? (derived) */
#define NUM_TOTALS (NUM_SECS_BW_SUM_IS_VALID/NUM_SECS_BW_SUM_INTERVAL)