Code cleanup

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-12-02 15:56:18 +00:00
parent 72019786eb
commit 4030b4370b

5
mud.c
View File

@@ -1486,13 +1486,10 @@ mud_send_wait(struct mud *mud)
if (path->state <= MUD_DOWN || !path->ok)
continue;
if (!path->send.stat_time) // TODO
continue;
uint64_t elapsed = MUD_TIME_MASK(now - path->send.stat_time);
if (elapsed >= MUD_SEND_TIMEOUT / 2)
continue; // TODO
continue;
uint64_t new_dt = (MUD_SEND_TIMEOUT / 2) - elapsed;