From f5c55154b4373f309bfe632c354b37fe6bd4c046 Mon Sep 17 00:00:00 2001 From: "Peter W. Draper" <p.w.draper@durham.ac.uk> Date: Thu, 19 Sep 2019 13:58:38 +0100 Subject: [PATCH] Tidy output --- swiftmpistepsim.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/swiftmpistepsim.c b/swiftmpistepsim.c index 1e92d9a..9f57fb7 100644 --- a/swiftmpistepsim.c +++ b/swiftmpistepsim.c @@ -262,8 +262,9 @@ static void *send_thread(void *arg) { "%.3f (%s)", ncalls, clocks_from_ticks(sum), clocks_from_ticks(sum / ncalls), clocks_from_ticks(mint), clocks_from_ticks(maxt), clocks_getunit()); - message("took %.3f %s.", clocks_from_ticks(getticks() - starttics), - clocks_getunit()); + if (verbose) + message("took %.3f %s.", clocks_from_ticks(getticks() - starttics), + clocks_getunit()); /* Thread exits. */ return NULL; @@ -288,8 +289,9 @@ static void *recv_thread(void *arg) { "%.3f (%s)", ncalls, clocks_from_ticks(sum), clocks_from_ticks(sum / ncalls), clocks_from_ticks(mint), clocks_from_ticks(maxt), clocks_getunit()); - message("took %.3f %s.", clocks_from_ticks(getticks() - starttics), - clocks_getunit()); + if (verbose) + message("took %.3f %s.", clocks_from_ticks(getticks() - starttics), + clocks_getunit()); /* Thread exits. */ return NULL; -- GitLab