fixed interchanged values in field_data stats fixes #2724
This commit is contained in:
parent
a1b2434339
commit
dc28151ad7
|
@ -83,8 +83,8 @@ public class FieldDataStats implements Streamable, ToXContent {
|
||||||
@Override
|
@Override
|
||||||
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
|
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
|
||||||
builder.startObject(Fields.FIELD_DATA);
|
builder.startObject(Fields.FIELD_DATA);
|
||||||
builder.field(Fields.MEMORY_SIZE, memorySize);
|
builder.field(Fields.MEMORY_SIZE, getMemorySize().toString());
|
||||||
builder.field(Fields.MEMORY_SIZE_IN_BYTES, getMemorySize().toString());
|
builder.field(Fields.MEMORY_SIZE_IN_BYTES, memorySize);
|
||||||
builder.field(Fields.EVICTIONS, getEvictions());
|
builder.field(Fields.EVICTIONS, getEvictions());
|
||||||
builder.endObject();
|
builder.endObject();
|
||||||
return builder;
|
return builder;
|
||||||
|
|
Loading…
Reference in New Issue