From 638d6344e515bd2502c723d7c14370c3e68aec0c Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 10 Sep 2014 12:24:49 +0000 Subject: [PATCH] reset histogram as well after new simulation case was detected git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@238 8ec27952-4edc-4aab-86aa-e87bb2611832 --- server/src/path.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/src/path.c b/server/src/path.c index 88ee4b0e3..0d0b338ed 100644 --- a/server/src/path.c +++ b/server/src/path.c @@ -80,11 +80,17 @@ static void * path_run(void *arg) path_stats(p); info("Simulation started"); + /* Reset counters */ p->sent = 0; p->received = 0; p->invalid = 0; p->skipped = 0; p->dropped = 0; + + /* Reset sequence no tracking */ + p->sequence = -1; + memset(p->histogram, 0, sizeof(p->histogram)); + } lag = m->sequence - p->sequence;