From 112fbca28f2ad7f182862ea90b1b5e20f91b1364 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 9 Sep 2014 09:23:19 +0000 Subject: [PATCH] simply drop messages from hist which are quite too late/early git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@225 8ec27952-4edc-4aab-86aa-e87bb2611832 --- server/src/path.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/src/path.c b/server/src/path.c index 7c0950d49..0da8868be 100644 --- a/server/src/path.c +++ b/server/src/path.c @@ -79,11 +79,7 @@ static void * path_run(void *arg) p->received++; - if (HIST_SEQ/2 + lag >= HIST_SEQ) - p->histogram[HIST_SEQ-1]++; - else if (HIST_SEQ/2 + lag < 0) - p->histogram[0]++; - else + if (HIST_SEQ/2 + lag < HIST_SEQ && HIST_SEQ/2 + lag >= 0) p->histogram[HIST_SEQ/2 + lag]++; /** Check header fields */