Browse Source

Specify milliseconds in log

master
ckolivas 9 years ago
parent
commit
1ce7fd9c10
  1. 2
      src/libckpool.c
  2. 2
      src/stratifier.c

2
src/libckpool.c

@ -784,7 +784,7 @@ int round_trip(char *url)
url, port, diff);
diff = 500;
}
LOGINFO("Minimum round trip to %s:%s calculated as %d", url, port, ret);
LOGINFO("Minimum round trip to %s:%s calculated as %dms", url, port, ret);
out:
Close(sockd);
freeaddrinfo(p);

2
src/stratifier.c

@ -5436,7 +5436,7 @@ static void *set_node_latency(void *arg)
pthread_detach(pthread_self());
client->latency = round_trip(client->address) / 2;
LOGNOTICE("Node client %"PRId64" %s latency set to %d", client->id,
LOGNOTICE("Node client %"PRId64" %s latency set to %dms", client->id,
client->address, client->latency);
dec_instance_ref(client->sdata, client);
return NULL;

Loading…
Cancel
Save