Skip to content
Snippets Groups Projects
Commit 179a3704 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

netio shows network speed 2 digits aftzer "."

parent 57150384
No related branches found
No related tags found
1 merge request!143netio shows network speed 2 digits after "."
......@@ -8,6 +8,7 @@
# 2020-07-08 v1.0 <axel.hahn@iml.unibe.ch>
# 2023-08-21 v1.1 <axel.hahn@unibe.ch> add help; add param -i
# 2023-08-22 v1.2 <axel.hahn@unibe.ch> send perf data on single interface too; interfaces in alphabetic order; no more tmp file
# 2023-08-22 v1.3 <axel.hahn@unibe.ch> show status line with 2 digits after "."
# ======================================================================
......@@ -133,7 +134,7 @@ ph.perfadd "rx" "$iTotalRead"
ph.perfadd "tx" "$iTotalTrans"
# ----- output
ph.status "Network IO ... IN $(ph.toUnit $iTotalRead M) MB/s >> [host] >> $(ph.toUnit $iTotalTrans M) MB/s OUT"
ph.status "Network IO ... IN $(ph.toUnit $iTotalRead M 2 ) MB/s >> [host] >> $(ph.toUnit $iTotalTrans M 2 ) MB/s OUT"
echo "$out"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment