Merge pull request #5 from AiyionPrime/thkr-1.1-ponyhof
This commit is contained in:
commit
8e0e0aea5f
3 changed files with 4 additions and 4 deletions
|
@ -747,8 +747,8 @@ static void send_everything(connection_t *c) {
|
|||
|
||||
for splay_each(node_t, n, node_tree) {
|
||||
if ((!n->status.reachable) && ((now.tv_sec - n->last_state_change) >= keylifetime*2)) {
|
||||
logger(DEBUG_CONNECTIONS, LOG_INFO, "Not forwarding informations about %s to %s (%zu / %d)", n->name,
|
||||
c->name, now.tv_sec - n->last_state_change, keylifetime);
|
||||
logger(DEBUG_CONNECTIONS, LOG_INFO, "Not forwarding informations about %s to %s (%lf / %d)", n->name,
|
||||
c->name, difftime(now.tv_sec, n->last_state_change), keylifetime);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ bool send_ping(connection_t *c) {
|
|||
c->status.pinged = true;
|
||||
c->last_ping_time = now;
|
||||
|
||||
return send_request(c, "%d %zu %ld", PING, c->last_ping_time.tv_sec, c->last_ping_time.tv_usec);
|
||||
return send_request(c, "%d %zu %ld", PING, (size_t)c->last_ping_time.tv_sec, c->last_ping_time.tv_usec);
|
||||
}
|
||||
|
||||
bool ping_h(connection_t *c, const char *request) {
|
||||
|
|
|
@ -120,7 +120,7 @@ bool add_subnet_h(connection_t *c, const char *request) {
|
|||
logger(DEBUG_ALWAYS, LOG_WARNING, "Ignoring unauthorized %s from %s (%s): %s",
|
||||
"ADD_SUBNET", c->name, c->hostname, subnetstr);
|
||||
if ((!owner->status.reachable) && ((now.tv_sec - owner->last_state_change) >= keylifetime*2)) {
|
||||
logger(DEBUG_CONNECTIONS, LOG_INFO, "Not forwarding informations about %s to ALL (%zu / %d)", owner->name, now.tv_sec - owner->last_state_change, keylifetime);
|
||||
logger(DEBUG_CONNECTIONS, LOG_INFO, "Not forwarding informations about %s to ALL (%lf / %d)", owner->name, difftime(now.tv_sec, owner->last_state_change), keylifetime);
|
||||
} else {
|
||||
forward_request(c, request);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue