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:
parent
caec04dab2
commit
0ec97c2fed
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue