From 0ec97c2fed073e8ffcbdf5641d885bfcc1847cf5 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 20 Jan 2015 10:52:00 +0000 Subject: [PATCH] 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 --- server/src/path.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/server/src/path.c b/server/src/path.c index 4d76c6a40..db2d1ebe4 100644 --- a/server/src/path.c +++ b/server/src/path.c @@ -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; }