From 1965b8810dd7822acca1895016dcdce698efe287 Mon Sep 17 00:00:00 2001
From: Steffen Vogel <post@steffenvogel.de>
Date: Wed, 20 Dec 2017 14:54:18 +0100
Subject: [PATCH] stats: do not collect stats about reordering twice

---
 lib/hooks/drop.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/hooks/drop.c b/lib/hooks/drop.c
index 4f21106e2..0ac6d39fb 100644
--- a/lib/hooks/drop.c
+++ b/lib/hooks/drop.c
@@ -68,9 +68,7 @@ static int drop_read(struct hook *h, struct sample *smps[], unsigned *cnt)
 			if (dist <= 0) {
 				cur->flags |= SAMPLE_IS_REORDERED;
 
-				debug(10, "Reordered sample: sequence=%u, distance=%d", cur->sequence, dist);
-				if (h->node && h->node->stats)
-					stats_update(h->node->stats, STATS_REORDERED, dist);
+				debug(10, "Dropping reordered sample: sequence=%u, distance=%d", cur->sequence, dist);
 			}
 			else
 				goto ok;