[tor-commits] [tor/master] Apply ahf's ceil_div.cocci patch.
nickm at torproject.org
nickm at torproject.org
Thu Aug 24 20:11:49 UTC 2017
commit 067a4422fec371e1ef3a1b8d13d5da9a1e90c70b
Author: Nick Mathewson <nickm at torproject.org>
Date: Thu Aug 24 15:33:27 2017 -0400
Apply ahf's ceil_div.cocci patch.
---
src/or/rephist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/or/rephist.c b/src/or/rephist.c
index e65b93fa7..ae45c5023 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -2552,7 +2552,7 @@ rep_hist_format_buffer_stats(time_t now)
processed_cells_string,
queued_cells_string,
time_in_queue_string,
- (number_of_circuits + SHARES - 1) / SHARES);
+ CEIL_DIV(number_of_circuits, SHARES));
tor_free(processed_cells_string);
tor_free(queued_cells_string);
tor_free(time_in_queue_string);
More information about the tor-commits
mailing list