]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_misc.c
Remove global variable "now".
[meshlink] / src / protocol_misc.c
index 52e97e5448193f9260a86d605e80e4996cebd89b..ca1dc315993884a0aa30a4138c2ea805c961c288 100644 (file)
@@ -116,7 +116,7 @@ bool send_ping(connection_t *c)
        cp();
 
        c->status.pinged = true;
-       c->last_ping_time = now;
+       c->last_ping_time = time(NULL);
 
        return send_request(c, "%d", PING);
 }