Always update path->send.time

This commit is contained in:
angt
2016-04-30 12:38:18 +00:00
parent e0c80bef3d
commit a26e2af038

13
mud.c
View File

@@ -230,15 +230,14 @@ ssize_t mud_send_path (struct mud *mud, struct path *path, uint64_t now,
ssize_t ret = sendmsg(mud->fd, &msg, 0); ssize_t ret = sendmsg(mud->fd, &msg, 0);
if (ret == (ssize_t)size) { if ((ret == (ssize_t)size) &&
if (path->recv.time > path->send.time) { (path->recv.time > path->send.time)) {
path->last_time = now; path->last_time = now;
path->last_count = 0; path->last_count = 0;
}
path->send.time = now;
} }
path->send.time = now;
return ret; return ret;
} }