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

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
This commit is contained in:
Steffen Vogel 2014-09-10 12:24:49 +00:00
parent d22a3da9ea
commit 638d6344e5

View file

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