From 179a37041e067d163fc6f4563e8bf18ae0e3248a Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Thu, 24 Aug 2023 17:10:07 +0200
Subject: [PATCH] netio shows network speed 2 digits aftzer "."

---
 check_netio | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/check_netio b/check_netio
index c967f5f..59a9c9d 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"
 
-- 
GitLab