summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-12-21 10:27:37 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-21 10:27:37 -0500
commitc38157be9d8fc7de9c6fc0c58e3bc8481a1d48a4 (patch)
tree06de17862734511403e6debf97be6b93d235f475
parent885ba513ff709eb86a71c7daf7c23aafab4862a8 (diff)
downloadtor-c38157be9d8fc7de9c6fc0c58e3bc8481a1d48a4.tar.gz
tor-c38157be9d8fc7de9c6fc0c58e3bc8481a1d48a4.zip
clarify a comment
-rw-r--r--src/or/scheduler_kist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/scheduler_kist.c b/src/or/scheduler_kist.c
index a50be345b0..19a8db5170 100644
--- a/src/or/scheduler_kist.c
+++ b/src/or/scheduler_kist.c
@@ -286,8 +286,8 @@ update_socket_info_impl, (socket_table_ent_t *ent))
* more in the kernel for now. */
ent->limit = 0;
} else {
- /* Adding two positive int64_t together will always fit in an uint64_t.
- * And we know this will always be positive. */
+ /* The positive sum of two int64_t will always fit into an uint64_t.
+ * And we know this will always be positive, since we checked above. */
ent->limit = (uint64_t)tcp_space + (uint64_t)extra_space;
}
return;