From 0a2777ad8d3c023a5038580ae36f0989c463f47e Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Thu, 31 Aug 2017 09:42:58 +0200 Subject: [PATCH] hook: enable mapping of stats in "map" hook --- lib/hooks/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hooks/map.c b/lib/hooks/map.c index 4988efd15..81ea8222d 100644 --- a/lib/hooks/map.c +++ b/lib/hooks/map.c @@ -89,7 +89,7 @@ static int map_read(struct hook *h, struct sample *smps[], unsigned *cnt) tmp[i]->format = 0; tmp[i]->length = 0; - mapping_remap(&p->mapping, tmp[i], smps[i], NULL); + mapping_remap(&p->mapping, tmp[i], smps[i], p->stats); SWAP(smps[i], tmp[i]); }