Remove global variable "now".
This commit is contained in:
parent
7e1117197c
commit
ddc6a81a85
10 changed files with 18 additions and 38 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue