diff --git a/check_netio b/check_netio index c967f5f359786a0b533d13acc8835f3c948ab053..59a9c9d619fb4f7b15b08f24da59f3baa3be3580 100755 --- a/check_netio +++ b/check_netio @@ -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"