Show remote loss too
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
2
mud
2
mud
Submodule mud updated: 9a378aea99...ee4b484a38
32
src/path.c
32
src/path.c
@@ -41,22 +41,19 @@ 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"
|
||||
" total rx: %"PRIu64" packets\n"
|
||||
" tx:\n"
|
||||
" rate: %"PRIu64" bytes/sec\n"
|
||||
" loss: %"PRIu64" percent\n"
|
||||
" total: %"PRIu64" packets\n"
|
||||
" rx:\n"
|
||||
" rate: %"PRIu64" bytes/sec\n"
|
||||
" loss: %"PRIu64" percent\n"
|
||||
" total: %"PRIu64" packets\n"
|
||||
: "path %s %s"
|
||||
" %s %"PRIu16
|
||||
" %s %"PRIu16
|
||||
" %s %"PRIu16
|
||||
" %zu"
|
||||
" %.3f %.3f"
|
||||
" %"PRIu64
|
||||
" %"PRIu64
|
||||
" %"PRIu64
|
||||
" %"PRIu64
|
||||
" %"PRIu64
|
||||
" %s %"PRIu16" %s %"PRIu16" %s %"PRIu16
|
||||
" %zu %.3f %.3f"
|
||||
" %"PRIu64" %"PRIu64" %"PRIu64
|
||||
" %"PRIu64" %"PRIu64" %"PRIu64
|
||||
"\n",
|
||||
statestr,
|
||||
statusstr,
|
||||
@@ -69,10 +66,11 @@ 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->loss_tx,
|
||||
path->send.total,
|
||||
path->rate_rx,
|
||||
path->loss_rx,
|
||||
path->recv.total);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user