Fix beat conf

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2020-02-21 16:37:04 +00:00
parent 5be4096452
commit 4a7740f70f

2
mud.c
View File

@@ -1570,7 +1570,7 @@ mud_set_state(struct mud *mud, struct sockaddr *addr,
path->conf.rx_max_rate = path->rx.rate = rx_max_rate;
if (beat)
path->conf.beat = beat;
path->conf.beat = beat * MUD_ONE_MSEC;
if (fixed_rate)
path->conf.fixed_rate = fixed_rate >> 1;