diff options
author | teor <teor@torproject.org> | 2019-04-03 13:40:06 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-04-05 12:17:21 +1000 |
commit | da678213e00cfe54ccc80286bed2b36603bba115 (patch) | |
tree | bba796adf3d4a11a7a3b9b114cf7e740c250b967 | |
parent | 387d9448de4c5044800706b4ed21b48b4426cb7e (diff) | |
download | tor-da678213e00cfe54ccc80286bed2b36603bba115.tar.gz tor-da678213e00cfe54ccc80286bed2b36603bba115.zip |
circuitpadding: comment fixes
-rw-r--r-- | src/core/or/circuitpadding.c | 3 | ||||
-rw-r--r-- | src/test/test_circuitpadding.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/core/or/circuitpadding.c b/src/core/or/circuitpadding.c index ba6bfe1f53..0e3dc502ce 100644 --- a/src/core/or/circuitpadding.c +++ b/src/core/or/circuitpadding.c @@ -1466,7 +1466,8 @@ circpad_estimate_circ_rtt_on_send(circuit_t *circ, /* If the old RTT estimate is lower than this one, use this one, because * the circuit is getting longer. If this estimate is somehow - * faster than the previous, then maybe that was network jitter. + * faster than the previous, then maybe that was network jitter, or a + * bad monotonic clock source (so our ratchet returned a zero delta). * In that case, average them. */ if (mi->rtt_estimate_usec < (circpad_delay_t)rtt_time) { mi->rtt_estimate_usec = (circpad_delay_t)rtt_time; diff --git a/src/test/test_circuitpadding.c b/src/test/test_circuitpadding.c index ed048ab968..09a4c9a0ca 100644 --- a/src/test/test_circuitpadding.c +++ b/src/test/test_circuitpadding.c @@ -576,7 +576,7 @@ test_circuitpadding_token_removal_higher(void *arg) } } - /* Check that all lowe bins are not touched */ + /* Check that all lower bins are not touched */ for (i=0; i < 4 ; i++) { tt_int_op(mi->histogram[i], OP_EQ, 2); } |