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

update check for zero in ph.toUnit()

parent 0fa3e742
No related branches found
No related tags found
1 merge request!306OP#7938 Icinga Check Disk Performance messen https://projects.iml.unibe.ch/work_packages/7938
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
# 2023-09-05 v1.14 <axel.hahn@unibe.ch> ph.require - show error below status line # 2023-09-05 v1.14 <axel.hahn@unibe.ch> ph.require - show error below status line
# 2023-09-14 v1.15 <axel.hahn@unibe.ch> add ph.showtimer; fix broken pipe messages in journallog # 2023-09-14 v1.15 <axel.hahn@unibe.ch> add ph.showtimer; fix broken pipe messages in journallog
# 2024-05-30 v1.16 <axel.hahn@unibe.ch> updatate link to online help (Daux replaces "-"" to "_") # 2024-05-30 v1.16 <axel.hahn@unibe.ch> updatate link to online help (Daux replaces "-"" to "_")
# 2025-04-01 v1.17 <axel.hahn@unibe.ch> update check for zero in ph.toUnit()
# ====================================================================== # ======================================================================
...@@ -329,7 +330,7 @@ function ph.toUnit(){ ...@@ -329,7 +330,7 @@ function ph.toUnit(){
local _digits=${3:-0} local _digits=${3:-0}
local _dots local _dots
if [ "$_value" -eq "0" ]; then if [ "$_value" = "0" ]; then
echo "0" echo "0"
return 0 return 0
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment