Browse Source

Adjust BWC version on OS pretty name

This commit adjusts the BWC version the OS pretty name field on OsInfo
now that this field has been backported to the 6.x development branch.
Jason Tedor 7 years ago
parent
commit
5c2a5f2e37
1 changed files with 2 additions and 2 deletions
  1. 2 2
      server/src/main/java/org/elasticsearch/monitor/os/OsInfo.java

+ 2 - 2
server/src/main/java/org/elasticsearch/monitor/os/OsInfo.java

@@ -61,7 +61,7 @@ public class OsInfo implements Writeable, ToXContentFragment {
         this.availableProcessors = in.readInt();
         this.allocatedProcessors = in.readInt();
         this.name = in.readOptionalString();
-        if (in.getVersion().onOrAfter(Version.V_7_0_0)) {
+        if (in.getVersion().onOrAfter(Version.V_6_6_0)) {
             this.prettyName = in.readOptionalString();
         } else {
             this.prettyName = null;
@@ -76,7 +76,7 @@ public class OsInfo implements Writeable, ToXContentFragment {
         out.writeInt(availableProcessors);
         out.writeInt(allocatedProcessors);
         out.writeOptionalString(name);
-        if (out.getVersion().onOrAfter(Version.V_7_0_0)) {
+        if (out.getVersion().onOrAfter(Version.V_6_6_0)) {
             out.writeOptionalString(prettyName);
         }
         out.writeOptionalString(arch);