From e22d3b501680ddb8c3f484b16b4c233487f81f9d Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 10 Mar 2005 02:19:45 +0000 Subject: [PATCH] win32 stuff --- .../java/src/net/hyperic/sigar/OperatingSystem.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bindings/java/src/net/hyperic/sigar/OperatingSystem.java b/bindings/java/src/net/hyperic/sigar/OperatingSystem.java index 972aebc4..1991a709 100644 --- a/bindings/java/src/net/hyperic/sigar/OperatingSystem.java +++ b/bindings/java/src/net/hyperic/sigar/OperatingSystem.java @@ -39,6 +39,19 @@ public class OperatingSystem { } else if (os.name.indexOf("Windows") > -1) { os.vendor = "Microsoft"; + if (os.name.endsWith("XP")) { + os.vendorVersion = "XP"; + } + else if (os.name.indexOf("2003") != -1) { + os.vendorVersion = "2003"; + } + else if (os.name.indexOf("2000") != -1) { + os.vendorVersion = "2000"; + } + else if (os.name.indexOf("NT") != -1) { + os.vendorVersion = "NT"; + } + os.name = "Win32"; } else if (os.name.equals("SunOS")) { os.vendor = "Sun Microsystems";