[vlma-devel] commit: Typo which had broken SNMP data retrieval. (Adrien Grand )

git version control git at videolan.org
Thu Jul 10 02:13:19 CEST 2008


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Wed Jul  9 14:32:42 2008 +0200| [596f3306f41e40b9144beec96bc39ddf8eb80dcb]

Typo which had broken SNMP data retrieval.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=596f3306f41e40b9144beec96bc39ddf8eb80dcb
---

 .../org/videolan/vlma/model/server/ServerImpl.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/vlma-model/src/main/java/org/videolan/vlma/model/server/ServerImpl.java b/vlma-model/src/main/java/org/videolan/vlma/model/server/ServerImpl.java
index 9d0443a..d1f1679 100644
--- a/vlma-model/src/main/java/org/videolan/vlma/model/server/ServerImpl.java
+++ b/vlma-model/src/main/java/org/videolan/vlma/model/server/ServerImpl.java
@@ -68,11 +68,13 @@ public class ServerImpl extends AbstractServer implements Server {
             SNMPv1CommunicationInterface comm = new SNMPv1CommunicationInterface(
                     0, getIp(), VLMa.getInstance().getString("vlc.snmp.community"));
             VLMa vlma  = VLMa.getInstance();
-            String[] oid = { vlma.getString("snmp.oid.cpu_load"),
+            String[] oid = {
+                vlma.getString("vlc.snmp.oid.cpu_load"),
                 vlma.getString("vlc.snmp.oid.traffic_in"),
                 vlma.getString("vlc.snmp.oid.traffic_out"),
                 vlma.getString("vlc.snmp.oid.vlc_cpu"),
-                vlma.getString("vlc.snmp.oid.vlc_mem") };
+                vlma.getString("vlc.snmp.oid.vlc_mem")
+            };
             SNMPVarBindList varList = comm.getMIBEntry(oid);
             SNMPSequence pair = (SNMPSequence) (varList.getSNMPObjectAt(0));
             currentCpuLoad = Double.parseDouble(pair.getSNMPObjectAt(1)



More information about the vlma-devel mailing list