1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

stats: do not collect stats about reordering twice

This commit is contained in:
Steffen Vogel 2017-12-20 14:54:18 +01:00
parent 3a14eacb3d
commit 1965b8810d

View file

@ -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;