We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01dd305 + 56f65bb commit c306ab4Copy full SHA for c306ab4
picoquic/pacing.c
@@ -34,18 +34,6 @@ void picoquic_pacing_init(picoquic_pacing_t* pacing, uint64_t current_time)
34
pacing->packet_time_microsec = 1;
35
}
36
37
-/* Compute nanosec per packet */
38
-static uint64_t picoquic_pacing_time_nanosec(picoquic_pacing_t* pacing, size_t length)
39
-{
40
- const uint64_t nanosec_per_sec = 1000000000ull;
41
- uint64_t packet_time_nanosec = 1;
42
- if (pacing->rate > 0) {
43
- packet_time_nanosec = (nanosec_per_sec * length + (pacing->rate - 1)) / pacing->rate;
44
- }
45
-
46
- return packet_time_nanosec;
47
-}
48
49
/* Update the leaky bucket used for pacing.
50
*/
51
static void picoquic_update_pacing_bucket(picoquic_pacing_t* pacing, uint64_t current_time)
0 commit comments