]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Apply ahf's ceil_div.cocci patch.
authorNick Mathewson <nickm@torproject.org>
Thu, 24 Aug 2017 19:33:27 +0000 (15:33 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 24 Aug 2017 19:33:27 +0000 (15:33 -0400)
src/or/rephist.c

index e65b93fa766c71d73b18374a9ae6c7491e1abd83..ae45c5023a371cddba6c218e3f16fd73871dd150 100644 (file)
@@ -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);