From 6ff4fa8435af811a42fc2d2397c8ed85b1d961f4 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 22 Jun 2004 02:06:35 +0000 Subject: [PATCH] use IS_WIN32 constant from SigarLoader --- bindings/java/src/net/hyperic/sigar/test/TestInvoker.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/test/TestInvoker.java b/bindings/java/src/net/hyperic/sigar/test/TestInvoker.java index bece9ecf..e9c3b4b6 100644 --- a/bindings/java/src/net/hyperic/sigar/test/TestInvoker.java +++ b/bindings/java/src/net/hyperic/sigar/test/TestInvoker.java @@ -1,15 +1,13 @@ package net.hyperic.sigar.test; import net.hyperic.sigar.Sigar; +import net.hyperic.sigar.SigarLoader; import net.hyperic.sigar.SigarProxy; import net.hyperic.sigar.SigarProxyCache; import net.hyperic.sigar.jmx.SigarInvokerJMX; public class TestInvoker extends SigarTestCase { - private final static boolean IS_WIN32 = - System.getProperty("os.name").startsWith("Windows"); - private static final String[][] OK_QUERIES = { { "sigar:Type=Mem", "Free" }, { "sigar:Type=Mem", "Total" }, @@ -50,7 +48,7 @@ public class TestInvoker extends SigarTestCase { String[] query = OK_QUERIES[i]; SigarInvokerJMX invoker = SigarInvokerJMX.getInstance(proxy, query[0]); - if (IS_WIN32 && + if (SigarLoader.IS_WIN32 && invoker.getType().equals("LoadAverage")) { /* XXX not implemented on win32