OSSP CVS Repository

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

ossp-pkg/snmpdx/snmpdx.d/hwCpu.pm 1.4 -> 1.5

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

CVSTrac 2.0.1