From 67b66bf548b00a685d9e11543b40191ddc7436a2 Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Mon, 3 Oct 2016 08:59:08 +0200 Subject: [PATCH] trigger a debug message if findBestParent takes over a millisecond --- dht/dhtcore/NodeStore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dht/dhtcore/NodeStore.c b/dht/dhtcore/NodeStore.c index ba09e2ccc..59829bc6c 100644 --- a/dht/dhtcore/NodeStore.c +++ b/dht/dhtcore/NodeStore.c @@ -445,7 +445,7 @@ static void findBestParent(struct Node_Two* node, struct NodeStore_pvt* store) } } while (ret); uint64_t time1 = Time_hrtime(store->eventBase); - if ((int64_t)(time1 - time0) > (10 * 1000000)) { + if ((int64_t)(time1 - time0) > 1000000) { Log_debug(store->logger, "findBestParent() took [%lld] ns", (long long) (time1 - time0)); } }