From a15d63d3e394899d17f9c9c4273d3423ac941660 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 15 Jun 2005 00:40:32 +0000 Subject: [PATCH] rename h_query to query --- bindings/java/src/net/hyperic/sigar/win32/Pdh.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/win32/Pdh.java b/bindings/java/src/net/hyperic/sigar/win32/Pdh.java index 6d714b55..4056cfb0 100644 --- a/bindings/java/src/net/hyperic/sigar/win32/Pdh.java +++ b/bindings/java/src/net/hyperic/sigar/win32/Pdh.java @@ -5,11 +5,11 @@ import java.util.List; public class Pdh extends Win32Bindings { - private long h_query; // Handle to the query + private long query = -1l; // Handle to the query private String hostname = null; public Pdh() throws Win32Exception { - h_query = pdhOpenQuery(); + this.query = pdhOpenQuery(); } public Pdh(String hostName) throws Win32Exception { @@ -26,9 +26,9 @@ public class Pdh extends Win32Bindings { } public synchronized void close() throws Win32Exception { - if (h_query != -1l) { - pdhCloseQuery(h_query); - h_query = -1l; + if (this.query != -1l) { + pdhCloseQuery(this.query); + this.query = -1l; } } @@ -55,9 +55,9 @@ public class Pdh extends Win32Bindings { pdhConnectMachine(this.hostname); } - long counter = pdhAddCounter(h_query, path); + long counter = pdhAddCounter(this.query, path); try { - return pdhGetValue(h_query, counter, format); + return pdhGetValue(this.query, counter, format); } finally { pdhRemoveCounter(counter); }