aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2010-08-15 15:04:33 +0200
committerKarsten Loesing <karsten.loesing@gmx.net>2010-12-03 16:47:52 +0100
commitc3c6a6ed34d274a3abbe459c97ee46b2ac99da30 (patch)
treeabcce461ed6f4d0a872a426d98ebd0c567308d39
parentf56529b4b2226f2fde1ff75ee222edccca9d1591 (diff)
downloadtor-c3c6a6ed34d274a3abbe459c97ee46b2ac99da30.tar.gz
tor-c3c6a6ed34d274a3abbe459c97ee46b2ac99da30.zip
Document BIDI_* constants.
-rw-r--r--src/or/rephist.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index f63e9519e4..a4d8851557 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -2431,10 +2431,17 @@ rep_hist_conn_stats_init(time_t now)
start_of_conn_stats_interval = now;
}
+/* Count connections that we read and wrote less than these many bytes
+ * from/to as below threshold. */
#define BIDI_THRESHOLD 20480
+/* Count connections that we read or wrote at least this factor as many
+ * bytes from/to than we wrote or read to/from as mostly reading or
+ * writing. */
#define BIDI_FACTOR 10
+/* Interval length in seconds for considering read and written bytes for
+ * connection stats. */
#define BIDI_INTERVAL 10
/* Start of next BIDI_INTERVAL second interval. */