Skip to content

Commit

Permalink
Merge pull request #159 from Thomas-Gelf/fix/lower-limit-cannot-conve…
Browse files Browse the repository at this point in the history
…rt-to-float

check_multi: set lower limit only when set
  • Loading branch information
lingej authored Feb 26, 2019
2 parents 988e571 + c718dbd commit 1ad1222
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion share/pnp/templates.dist/check_multi.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
# Template for check_multi
#

$opt[1] = "--lower-limit=$MIN[1] --vertical-label num --title \"Number of Checks\" ";
$opt[1] = "--vertical-label num --title \"Number of Checks\" ";
if (isset($MIN[1]) && is_numeric($MIN[1])) {
$opt[1] .= "--lower-limit=$MIN[1] ";
}
$ds_name[1] = "Executed Plugins";

$def[1] = "DEF:var1=$RRDFILE[1]:$DS[1]:AVERAGE " ;
Expand Down

0 comments on commit 1ad1222

Please sign in to comment.