altered order of options of command ping, because not work with freebsd

git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@4731 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
Luiz Gustavo 2008-04-16 11:51:18 +00:00
parent 89ed8453aa
commit 64eaea3c09
1 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ my $start=time;
$opt_i = 1 if (!defined($opt_i) || !$opt_i);
$_ = `$ping -n -c $NbPing $opt_H -i $opt_i 2>/dev/null`;
$_ = `$ping -n -c $NbPing -i $opt_i $opt_H 2>/dev/null`;
my $return = $? / 256;
#
@ -199,4 +199,4 @@ sub print_help () {
print "##############################################\n";
print_usage();
print "\n";
}
}