From 25fc7cd7ef6704449c9a6d238a907eecf264d82e Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Mon, 30 Jan 2023 15:18:53 +0100 Subject: [PATCH] check performance params 5+6 and show a warning --- inc_pluginfunctions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc_pluginfunctions b/inc_pluginfunctions index 7471547..dca76fe 100644 --- a/inc_pluginfunctions +++ b/inc_pluginfunctions @@ -31,6 +31,7 @@ # 2020-09-01 v1.3 <axel.hahn@iml.unibe.ch> added ph.hasParamoption # 2022-08-31 v1.4 <axel.hahn@iml.unibe.ch> shellfix corrections # 2022-10-25 v1.5 <axel.hahn@iml.unibe.ch> handle empty value in ph.perfadd +# 2023-01-30 v1.6 <axel.hahn@unibe.ch> check performance params 5+6 and show a warning if missing # ====================================================================== @@ -439,7 +440,10 @@ function ph.perfadd(){ local _max=$6 test -z "$_value" && _value=0 + test -z "$_min" && echo "WARNING from ph.perfadd: missing param 5 for minimum - setting it to 0" test -z "$_min" && _min=0 + test -z "$_max" && echo "WARNING from ph.perfadd: missing param 6 for maxiumun - setting it to 100" + test -z "$_max" && _max=100 echo "${_label}=${_value};${_w};${_c};${_min};${_max}" >>"${ph_perfdatafile}" } -- GitLab