Fix #4702
This commit is contained in:
parent
5cb8a7e6a3
commit
145a0bfc4e
|
@ -104,7 +104,7 @@ if ($opt_c && $opt_c =~ /^([0-9\.]+),([0-9\.]+),([0-9\.]+)$/) {
|
|||
exit $ERRORS{'OK'};
|
||||
}
|
||||
|
||||
if ($opt_w && $opt_w =~ /^([0-9]+),([0-9]+),([0-9]+)$/) {
|
||||
if ($opt_w && $opt_w =~ /^([0-9\.]+),([0-9\.]+),([0-9\.]+)$/) {
|
||||
@warning = ($1,$2,$3);
|
||||
} elsif (!defined($opt_w) && !$opt_w) {
|
||||
@warning = ('1', '3', '5');
|
||||
|
|
Loading…
Reference in New Issue