git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@11006 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
Julien Mathis 2010-11-02 12:22:55 +00:00
parent 0624e6cfd8
commit 8d1225386a
1 changed files with 4 additions and 3 deletions

View File

@ -257,8 +257,8 @@ if ($mustCreateFile) {
}
}
#getting interface using its name instead of its oid index
################################################################
# Getting interface using its name instead of its oid index
if ($opt_n) {
if ($opt_r){
if (!-e $cacheFile) {
@ -290,7 +290,8 @@ if ($opt_n) {
if ($countLine) {
my @resLine = split(/\;/, $row);
$resLine[1] =~ s/\x00//g;
if ($resLine[1] =~ $opt_i) {
$resLine[1] =~ s/\n//g;
if ($resLine[1] eq $opt_i) {
$interface = $resLine[0];
}
}