OSSP CVS Repository

ossp - Difference in ossp-pkg/snmpdx/snmpdx.d/hwDisk.pm versions 1.1 and 1.2
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/snmpdx/snmpdx.d/hwDisk.pm 1.1 -> 1.2

--- hwDisk.pm    2003/09/08 13:43:05     1.1
+++ hwDisk.pm    2003/09/08 14:34:56     1.2
@@ -77,7 +77,7 @@
             my $col = $1;
             my $row = ($2 > 0 ? $2 - 1 : 0);
             $self->{-ctx}->{-log}->printf(4, "col=%s row=%s", $col, $row);
-            $obj->{-value} = @hwDiskInfoENTRY[$row]->{$col} if (defined @hwDiskInfoENTRY[$row]->{$col});
+            $obj->{-value} = @hwDiskInfoENTRY[$row]->{$col} if (defined @hwDiskInfoENTRY[$row] and defined @hwDiskInfoENTRY[$row]->{$col});
         }
     }
     return;

CVSTrac 2.0.1