Fix a non-working cast to get rid of a compiler warning.
This commit is contained in:
parent
25bcdad878
commit
0037ec7cb3
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ static void timeout_handler(void *data) {
|
||||||
if(c->edge) {
|
if(c->edge) {
|
||||||
try_tx(c->node, false);
|
try_tx(c->node, false);
|
||||||
if(c->status.pinged) {
|
if(c->status.pinged) {
|
||||||
logger(DEBUG_CONNECTIONS, LOG_INFO, "%s (%s) didn't respond to PING in %ld seconds", c->name, c->hostname, (long)now.tv_sec - c->last_ping_time);
|
logger(DEBUG_CONNECTIONS, LOG_INFO, "%s (%s) didn't respond to PING in %ld seconds", c->name, c->hostname, (long)(now.tv_sec - c->last_ping_time));
|
||||||
} else if(c->last_ping_time + pinginterval <= now.tv_sec) {
|
} else if(c->last_ping_time + pinginterval <= now.tv_sec) {
|
||||||
send_ping(c);
|
send_ping(c);
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue