From b8a145e95f36f969445efcc0dd1a8a8c372a93b8 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 21 Jul 2005 02:29:40 +0000 Subject: [PATCH] SunOS 5.6 == Solaris 2.6 --- .../java/src/net/hyperic/sigar/OperatingSystem.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/OperatingSystem.java b/bindings/java/src/net/hyperic/sigar/OperatingSystem.java index 5e14086d..5172df9c 100644 --- a/bindings/java/src/net/hyperic/sigar/OperatingSystem.java +++ b/bindings/java/src/net/hyperic/sigar/OperatingSystem.java @@ -130,9 +130,14 @@ public class OperatingSystem { else if (os.name.equals("SunOS")) { os.type = TYPE_SOLARIS; os.vendor = "Sun Microsystems"; - int ix = os.version.indexOf("."); - //5.8 == solaris 8, etc. - os.vendorVersion = os.version.substring(ix+1); + if (os.version.equals("5.6")) { + os.vendorVersion = "2.6"; + } + else { + int ix = os.version.indexOf("."); + //5.8 == solaris 8, etc. + os.vendorVersion = os.version.substring(ix+1); + } os.name = NAME_SOLARIS; } else if (os.name.equals("HP-UX")) {