X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet.c;h=c2c5d198ddb08f829d2a3b751156add7d314470c;hp=9094d61d5d2aebaadd6ff1784020ebedb013b70b;hb=c2dc3784f127ef6db6e9960a4abecc1aab6f4e31;hpb=b5b04910b928c63a31a0859f04bf067ca9bd1cc2 diff --git a/src/net.c b/src/net.c index 9094d61d..c2c5d198 100644 --- a/src/net.c +++ b/src/net.c @@ -152,7 +152,7 @@ static void timeout_handler(void *data) { if(c->edge) { try_tx(c->node, false); 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) { send_ping(c); continue;