Skip to content

Commit 5c2a5f2

Browse files
committed
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.
1 parent 730ec1d commit 5c2a5f2

File tree

1 file changed

+2
-2
lines changed
  • server/src/main/java/org/elasticsearch/monitor/os

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/monitor/os/OsInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public OsInfo(StreamInput in) throws IOException {
6161
this.availableProcessors = in.readInt();
6262
this.allocatedProcessors = in.readInt();
6363
this.name = in.readOptionalString();
64-
if (in.getVersion().onOrAfter(Version.V_7_0_0)) {
64+
if (in.getVersion().onOrAfter(Version.V_6_6_0)) {
6565
this.prettyName = in.readOptionalString();
6666
} else {
6767
this.prettyName = null;
@@ -76,7 +76,7 @@ public void writeTo(StreamOutput out) throws IOException {
7676
out.writeInt(availableProcessors);
7777
out.writeInt(allocatedProcessors);
7878
out.writeOptionalString(name);
79-
if (out.getVersion().onOrAfter(Version.V_7_0_0)) {
79+
if (out.getVersion().onOrAfter(Version.V_6_6_0)) {
8080
out.writeOptionalString(prettyName);
8181
}
8282
out.writeOptionalString(arch);

0 commit comments

Comments
 (0)