fixed interchanged values in field_data stats fixes #2724

This commit is contained in:
Andrii Gakhov 2013-03-04 11:19:33 +01:00
parent a1b2434339
commit dc28151ad7
1 changed files with 2 additions and 2 deletions

View File

@ -83,8 +83,8 @@ public class FieldDataStats implements Streamable, ToXContent {
@Override
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject(Fields.FIELD_DATA);
builder.field(Fields.MEMORY_SIZE, memorySize);
builder.field(Fields.MEMORY_SIZE_IN_BYTES, getMemorySize().toString());
builder.field(Fields.MEMORY_SIZE, getMemorySize().toString());
builder.field(Fields.MEMORY_SIZE_IN_BYTES, memorySize);
builder.field(Fields.EVICTIONS, getEvictions());
builder.endObject();
return builder;