X-Git-Url: http://git.scottworley.com/tattlekey/blobdiff_plain/4db97133ae0498147735ef312fbd5cdea969e6da..72ba8a8d6836027eaa12bb23bddf8f72900853ab:/client/tattlekey.c diff --git a/client/tattlekey.c b/client/tattlekey.c index 9af9b5a..c38de12 100644 --- a/client/tattlekey.c +++ b/client/tattlekey.c @@ -14,7 +14,9 @@ typedef struct { u8_t send_count; } send_t; -uint32_t next_send(send_t *s) { return s->timestamp + s->send_count; } +uint32_t next_send(send_t *s) { + return s->timestamp + (1 << s->send_count) - 1; +} bool next_send_less_than(void *user_data, pheap_node_id_t a, pheap_node_id_t b) {