aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/circuitstats.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-07-13 10:45:04 -0400
committerNick Mathewson <nickm@torproject.org>2020-07-13 10:45:04 -0400
commitecb43ce21caccbdfe99b0e12cdce7f83d59b06e3 (patch)
tree972dfab41d90ef357b5f0881bb8a646f7896f23a /src/core/or/circuitstats.c
parent0c91c63593720f07a20034bce2b0478dee216763 (diff)
parenteb427f309cbe2eb82769fdec4e9b7a7249c3287b (diff)
downloadtor-ecb43ce21caccbdfe99b0e12cdce7f83d59b06e3.tar.gz
tor-ecb43ce21caccbdfe99b0e12cdce7f83d59b06e3.zip
Merge branch 'maint-0.4.4'
Diffstat (limited to 'src/core/or/circuitstats.c')
-rw-r--r--src/core/or/circuitstats.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/or/circuitstats.c b/src/core/or/circuitstats.c
index bc6c263798..51bd9e1208 100644
--- a/src/core/or/circuitstats.c
+++ b/src/core/or/circuitstats.c
@@ -969,7 +969,7 @@ circuit_build_times_update_state(const circuit_build_times_t *cbt,
/**
* Shuffle the build times array.
*
- * Adapted from http://en.wikipedia.org/wiki/Fisher-Yates_shuffle
+ * Adapted from https://en.wikipedia.org/wiki/Fisher-Yates_shuffle
*/
static void
circuit_build_times_shuffle_and_store_array(circuit_build_times_t *cbt,
@@ -1180,7 +1180,7 @@ circuit_build_times_parse_state(circuit_build_times_t *cbt,
/**
* Estimates the Xm and Alpha parameters using
- * http://en.wikipedia.org/wiki/Pareto_distribution#Parameter_estimation
+ * https://en.wikipedia.org/wiki/Pareto_distribution#Parameter_estimation
*
* The notable difference is that we use mode instead of min to estimate Xm.
* This is because our distribution is frechet-like. We claim this is
@@ -1195,7 +1195,7 @@ circuit_build_times_update_alpha(circuit_build_times_t *cbt)
int n=0,i=0,abandoned_count=0;
build_time_t max_time=0;
- /* http://en.wikipedia.org/wiki/Pareto_distribution#Parameter_estimation */
+ /* https://en.wikipedia.org/wiki/Pareto_distribution#Parameter_estimation */
/* We sort of cheat here and make our samples slightly more pareto-like
* and less frechet-like. */
cbt->Xm = circuit_build_times_get_xm(cbt);
@@ -1267,9 +1267,9 @@ circuit_build_times_update_alpha(circuit_build_times_t *cbt)
* We use it to calculate the timeout and also to generate synthetic
* values of time for circuits that timeout before completion.
*
- * See http://en.wikipedia.org/wiki/Quantile_function,
- * http://en.wikipedia.org/wiki/Inverse_transform_sampling and
- * http://en.wikipedia.org/wiki/Pareto_distribution#Generating_a_
+ * See https://en.wikipedia.org/wiki/Quantile_function,
+ * https://en.wikipedia.org/wiki/Inverse_transform_sampling and
+ * https://en.wikipedia.org/wiki/Pareto_distribution#Generating_a_
* random_sample_from_Pareto_distribution
* That's right. I'll cite wikipedia all day long.
*