Show latency-smoothed maxrate per path

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-04-21 12:29:02 +00:00
parent a5f634ee28
commit d25957b108
2 changed files with 5 additions and 3 deletions

View File

@@ -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);