diff --git a/bindings/java/src/net/hyperic/sigar/OperatingSystem.java b/bindings/java/src/net/hyperic/sigar/OperatingSystem.java index 3be8699e..66e08f60 100644 --- a/bindings/java/src/net/hyperic/sigar/OperatingSystem.java +++ b/bindings/java/src/net/hyperic/sigar/OperatingSystem.java @@ -65,6 +65,9 @@ public class OperatingSystem { } else if (os.name.equals("HP-UX")) { os.vendor = "Hewlett-Packard"; + if (os.version.indexOf(".11.") != -1) { + os.vendorVersion = "11"; + } } else if (os.name.equals("OSF1")) { //HP acquired DEC @@ -83,6 +86,10 @@ public class OperatingSystem { os.vendor = "Unknown"; } + if (os.vendorVersion == null) { + os.vendorVersion = os.version; + } + instance = os; }