From be670131c1e1609e0df0aa08595630d6116d2cb3 Mon Sep 17 00:00:00 2001 From: Alan Gregory Date: Wed, 15 Jul 2015 18:04:13 -0300 Subject: [PATCH] Fixed some code standards --- includes/discovery/temperatures/powerconnect.inc.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/includes/discovery/temperatures/powerconnect.inc.php b/includes/discovery/temperatures/powerconnect.inc.php index 2688b6a8b..e70a468ee 100644 --- a/includes/discovery/temperatures/powerconnect.inc.php +++ b/includes/discovery/temperatures/powerconnect.inc.php @@ -25,8 +25,9 @@ if ($device['os'] == "powerconnect") * Dell-Vendor-MIB::dellLanExtension.6132.1.1.1.1.4.4.0 = STRING: "5 Sec (6.99%), 1 Min (6.72%), 5 Min (9.06%)" */ $temps = snmp_walk($device, "boxServicesTempSensorTemperature", "-OsqnU", "FASTPATH-BOXSERVICES-PRIVATE-MIB"); - if ($debug) { echo($temps."\n"); } - + if ($debug) { + echo($temps."\n"); + } $index = 0; foreach (explode("\n",$temps) as $oids) { @@ -37,8 +38,9 @@ if ($device['os'] == "powerconnect") $type = "powerconnect"; $index++; $descr = "Internal Temperature"; - if (count(explode("\n",$temps)) > 1) { $descr .= " $index"; } - + if (count(explode("\n",$temps)) > 1) { + $descr .= " $index"; + } discover_sensor($valid['sensor'], 'temperature', $device, $oid, $index, $type, $descr, $divisor, $multiplier, NULL, NULL, NULL, NULL, $current); } }