summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4478fcf)
raw | patch | inline | side by side (parent: 4478fcf)
author | Florian Forster <ff@octo.it> | |
Thu, 20 Nov 2014 13:46:40 +0000 (14:46 +0100) | ||
committer | Florian Forster <ff@octo.it> | |
Thu, 20 Nov 2014 13:46:40 +0000 (14:46 +0100) |
This is a really dirty hack: If the percentile and/or median output
decreases, the output may have less characters than previously. Add
spaces at the end of the string to clear digits with may have been
there, to avoid the "maximum" value be appear to go through the roof.
decreases, the output may have less characters than previously. Add
spaces at the end of the string to clear digits with may have been
there, to avoid the "maximum" value be appear to go through the roof.
src/oping.c | patch | blob | history |
diff --git a/src/oping.c b/src/oping.c
index debe23725709b3d278210f2cbc0439dd4bdf3ceb..e6be8774b0b622e9165744cb5a331431c0a583f0 100644 (file)
--- a/src/oping.c
+++ b/src/oping.c
@@ -1219,7 +1219,7 @@ static int update_stats_from_context (ping_context_t *ctx, pingobj_iter_t *iter)
percentile = percentile_to_latency (ctx, opt_percentile);
mvwprintw (ctx->window, /* y = */ 2, /* x = */ 2,
- "RTT[ms]: min = %.0f, median = %.0f, p(%.0f) = %.0f, max = %.0f",
+ "RTT[ms]: min = %.0f, median = %.0f, p(%.0f) = %.0f, max = %.0f ",
min, median, opt_percentile, percentile, max);
}