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

suppress statistice when nothing was sent or received

git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@265 8ec27952-4edc-4aab-86aa-e87bb2611832
This commit is contained in:
Steffen Vogel 2015-01-20 10:52:00 +00:00
parent caec04dab2
commit 0ec97c2fed

View file

@ -165,9 +165,11 @@ int path_stop(struct path *p)
pthread_join(p->sent_tid, NULL);
}
path_stats(p);
hist_print(&p->histogram);
hist_free(&p->histogram);
if (p->sent || p->received) {
path_stats(p);
hist_print(&p->histogram);
hist_free(&p->histogram);
}
return 0;
}