From d25957b10862e5f9ef870fe37439be6ffc37af1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Sat, 21 Apr 2018 12:29:02 +0000 Subject: [PATCH] Show latency-smoothed maxrate per path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- mud | 2 +- src/path.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mud b/mud index a7044db..b2e4bc1 160000 --- a/mud +++ b/mud @@ -1 +1 @@ -Subproject commit a7044db87cfbcefd9a89be8ab424132cbdd74d8a +Subproject commit b2e4bc1b8ffaeacce4c85289ee864e2fd693ba1d diff --git a/src/path.c b/src/path.c index 20e4086..462116a 100644 --- a/src/path.c +++ b/src/path.c @@ -54,8 +54,8 @@ gt_path_status(int fd) " mtu: %zu bytes\n" " rtt: %.3f ms\n" " rttvar: %.3f ms\n" - " upload: %"PRIu64" bytes/s\n" - " download: %"PRIu64" bytes/s\n" + " upload: %"PRIu64" bytes/s (max: %"PRIu64")\n" + " download: %"PRIu64" bytes/s (max: %"PRIu64")\n" " output: %"PRIu64" packets\n" " input: %"PRIu64" packets\n", statestr, @@ -69,7 +69,9 @@ gt_path_status(int fd) res.path_status.rtt/(double)1e3, res.path_status.rttvar/(double)1e3, res.path_status.r_rate, + res.path_status.r_ratemax, res.path_status.recv.rate, + res.path_status.recv.ratemax, res.path_status.send.total, res.path_status.recv.total); } while (res.ret == EAGAIN);