Skip to content

Commit

Permalink
Adjust BWC version on OS pretty name
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jasontedor committed Nov 8, 2018
1 parent 730ec1d commit 5c2a5f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/main/java/org/elasticsearch/monitor/os/OsInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public OsInfo(StreamInput in) throws IOException {
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;
Expand All @@ -76,7 +76,7 @@ public void writeTo(StreamOutput out) throws IOException {
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);
Expand Down

0 comments on commit 5c2a5f2

Please sign in to comment.