Skip to content

Commit

Permalink
[7.x] elastic#32478 fixed cluster stats return 8EB (elastic#32480) (3…
Browse files Browse the repository at this point in the history
…297231) (elastic#54273)

Co-authored-by: Darby.Han <darby.han@navercorp.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: 한우람 <hgword@gmail.com>
Co-authored-by: Darby.Han <darby.han@navercorp.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
4 people committed Mar 26, 2020
1 parent 5bfaa20 commit 3e1fc8a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/src/main/java/org/elasticsearch/monitor/fs/FsInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ public ByteSizeValue getAvailable() {
}

private long addLong(long current, long other) {
if (current == -1 && other == -1) {
return 0;
}
if (other == -1) {
return current;
}
Expand All @@ -124,6 +127,9 @@ private long addLong(long current, long other) {
}

private double addDouble(double current, double other) {
if (current == -1 && other == -1) {
return 0;
}
if (other == -1) {
return current;
}
Expand Down

0 comments on commit 3e1fc8a

Please sign in to comment.