From 1ce7fd9c1048b02a11a3064a192613a7cfcd991d Mon Sep 17 00:00:00 2001 From: ckolivas Date: Thu, 14 Jan 2016 09:53:54 +1100 Subject: [PATCH] Specify milliseconds in log --- src/libckpool.c | 2 +- src/stratifier.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libckpool.c b/src/libckpool.c index 100a5f95..3888efc2 100644 --- a/src/libckpool.c +++ b/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); diff --git a/src/stratifier.c b/src/stratifier.c index 9123faaf..54ca017c 100644 --- a/src/stratifier.c +++ b/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;