From 961a70a05100eb2c6b87cc146e835a66f5211c94 Mon Sep 17 00:00:00 2001
From: Marek Vavrusa <marek@vavrusa.com>
Date: Sat, 30 Jan 2016 14:35:00 +0000
Subject: [PATCH] daemon/worker: updated doc, worker.timeout metric

---
 daemon/README.rst | 3 +++
 daemon/worker.c   | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/daemon/README.rst b/daemon/README.rst
index 3932ebb7b..5f408a228 100644
--- a/daemon/README.rst
+++ b/daemon/README.rst
@@ -736,7 +736,10 @@ specified worker count and process rank.
    * ``tcp`` - number of outbound queries over TCP
    * ``ipv6`` - number of outbound queries over IPv6
    * ``ipv4`` - number of outbound queries over IPv4
+   * ``timeout`` - number of timeouted outbound queries
    * ``concurrent`` - number of concurrent queries at the moment
+   * ``queries`` - number of inbound queries
+   * ``dropped`` - number of dropped inbound queries
 
    Example:
 
diff --git a/daemon/worker.c b/daemon/worker.c
index b541b1eee..368e1d841 100644
--- a/daemon/worker.c
+++ b/daemon/worker.c
@@ -352,7 +352,7 @@ static void on_timeout(uv_timer_t *req)
 #endif
 	if (!uv_is_closing(handle)) {
 		struct worker_ctx *worker = task->worker;
-		worker->stats.queries += 1;
+		worker->stats.timeout += 1;
 		qr_task_step(task, NULL, NULL);
 	}
 }
-- 
GitLab