Show loss in command path

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2019-10-05 09:47:04 +00:00
parent 57ea0d283d
commit 639853b665
2 changed files with 4 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ gt_path_print_status(struct mud_path *path, int term)
" mtu: %zu bytes\n"
" rtt: %.3f ms\n"
" rttvar: %.3f ms\n"
" loss: %"PRIu64" %%\n"
" rate tx: %"PRIu64" bytes/sec\n"
" rate rx: %"PRIu64" bytes/sec\n"
" total tx: %"PRIu64" packets\n"
@@ -55,6 +56,7 @@ gt_path_print_status(struct mud_path *path, int term)
" %"PRIu64
" %"PRIu64
" %"PRIu64
" %"PRIu64
"\n",
statestr,
statusstr,
@@ -67,6 +69,7 @@ gt_path_print_status(struct mud_path *path, int term)
path->mtu.ok,
(double)path->rtt.val / 1e3,
(double)path->rtt.var / 1e3,
path->loss,
path->rate_tx,
path->rate_rx,
path->send.total,