This commit is contained in:
Quentin Garnier 2013-08-28 10:58:41 +02:00
parent 5cb8a7e6a3
commit 145a0bfc4e
1 changed files with 1 additions and 1 deletions

View File

@ -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');