Pārlūkot izejas kodu

Apply ahf's ceil_div.cocci patch.

Nick Mathewson 6 gadi atpakaļ
vecāks
revīzija
067a4422fe
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/or/rephist.c

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