Skip to content
Snippets Groups Projects

netio shows network speed 2 digits after "."

Merged Hahn Axel (hahn) requested to merge 6468-docs-and-harmonize into master
2 files
+ 24
13
Compare changes
  • Side-by-side
  • Inline

Files

+ 2
1
@@ -8,6 +8,7 @@
@@ -8,6 +8,7 @@
# 2020-07-08 v1.0 <axel.hahn@iml.unibe.ch>
# 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-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.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"
@@ -133,7 +134,7 @@ ph.perfadd "rx" "$iTotalRead"
ph.perfadd "tx" "$iTotalTrans"
ph.perfadd "tx" "$iTotalTrans"
# ----- output
# ----- 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"
echo "$out"
Loading