aboutsummaryrefslogtreecommitdiff
path: root/src/or/rephist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-12-11 16:54:14 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-11 16:54:14 -0500
commit04524443d071f3e310067e0a7ecdc52a97e80107 (patch)
treea6416cffdd822a7b85b0d509fa4d635457714a4c /src/or/rephist.c
parent736e7299ce04bd96aa75c50f7dd7ecba36945917 (diff)
parent2ea573ece8f168749b40eddcd023b71bf05a4fef (diff)
downloadtor-04524443d071f3e310067e0a7ecdc52a97e80107.tar.gz
tor-04524443d071f3e310067e0a7ecdc52a97e80107.zip
Merge branch 'maint-0.3.0' into maint-0.3.1
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 6a589379bb..ffc1867955 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -1239,9 +1239,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)