From 33456130370a342b8c515387390a3e7e7dc64772 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 6 Mar 2007 00:29:40 +0000 Subject: [PATCH] dont need to lc index --- bindings/java/src/org/hyperic/sigar/win32/Pdh.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bindings/java/src/org/hyperic/sigar/win32/Pdh.java b/bindings/java/src/org/hyperic/sigar/win32/Pdh.java index 299a7022..ca750b57 100644 --- a/bindings/java/src/org/hyperic/sigar/win32/Pdh.java +++ b/bindings/java/src/org/hyperic/sigar/win32/Pdh.java @@ -124,13 +124,12 @@ public class Pdh extends Win32 { //called by RegistryKey.getMultiStringValue //format description see: http://support.microsoft.com/kb/q287159/ public boolean add(Object o) { - o = ((String)o).trim().toLowerCase(); if (index == null) { index = (String)o; return true; } - int[] ix = - (int[])this.map.get(o); + String name = ((String)o).trim().toLowerCase(); + int[] ix = (int[])this.map.get(name); if (ix == null) { ix = new int[1]; } @@ -141,7 +140,7 @@ public class Pdh extends Win32 { } ix[0] = Integer.parseInt(index); //name -> index - this.map.put(o, ix); + this.map.put(name, ix); index = null; //reset return true; }