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>
This commit is contained in:
parent
5bfaa20dd4
commit
3e1fc8a5c9
|
@ -114,6 +114,9 @@ public class FsInfo implements Iterable<FsInfo.Path>, Writeable, ToXContentFragm
|
|||
}
|
||||
|
||||
private long addLong(long current, long other) {
|
||||
if (current == -1 && other == -1) {
|
||||
return 0;
|
||||
}
|
||||
if (other == -1) {
|
||||
return current;
|
||||
}
|
||||
|
@ -124,6 +127,9 @@ public class FsInfo implements Iterable<FsInfo.Path>, Writeable, ToXContentFragm
|
|||
}
|
||||
|
||||
private double addDouble(double current, double other) {
|
||||
if (current == -1 && other == -1) {
|
||||
return 0;
|
||||
}
|
||||
if (other == -1) {
|
||||
return current;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue