apc pdu bank total fix by falz

git-svn-id: http://www.observium.org/svn/observer/trunk@1937 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-03-20 19:48:21 +00:00
parent 7bd37c5b06
commit a199e7827d

View File

@ -74,10 +74,11 @@ if ($device['os'] == "apc")
$index = $split_oid[count($split_oid)-1];
$descr = "Bank ".$index;
$banknum = $index -1;
$descr = "Bank ".$banknum;
if ($baseversion == "3")
{
if ($index == "3") { $descr = "Bank Total"; }
if ($index == "1") { $descr = "Bank Total"; }
}
if ($baseversion == "2")
{
@ -131,4 +132,4 @@ if ($device['os'] == "apc")
unset($oids);
}
?>
?>