浏览代码

circuitpadding: comment fixes

teor 5 年之前
父节点
当前提交
da678213e0
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 1
      src/core/or/circuitpadding.c
  2. 1 1
      src/test/test_circuitpadding.c

+ 2 - 1
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;

+ 1 - 1
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);
   }