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:
parent
d22a3da9ea
commit
638d6344e5
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue