From a199e7827d4e96cf5edd6fd2764be72c54f9caab Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sun, 20 Mar 2011 19:48:21 +0000 Subject: [PATCH] apc pdu bank total fix by falz git-svn-id: http://www.observium.org/svn/observer/trunk@1937 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/discovery/current/apc.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/discovery/current/apc.inc.php b/includes/discovery/current/apc.inc.php index cafce954a5..f8526e3680 100644 --- a/includes/discovery/current/apc.inc.php +++ b/includes/discovery/current/apc.inc.php @@ -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); } -?> \ No newline at end of file +?>