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

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
This commit is contained in:
Steffen Vogel 2014-09-09 09:23:19 +00:00
parent 248d940bd3
commit 112fbca28f

View file

@ -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 */