Fix collector's class name on response output

This commit is contained in:
Zachary Tong 2015-12-18 16:45:52 -05:00
parent c50b22f95f
commit 5cfefe08b0
1 changed files with 2 additions and 2 deletions

View File

@ -123,8 +123,8 @@ public class CollectorResult implements ToXContent, Writeable {
@Override
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException {
builder = builder.startObject()
.field(NAME.getPreferredName(), toString())
.field(REASON.getPreferredName(), reason)
.field(NAME.getPreferredName(), getName())
.field(REASON.getPreferredName(), getReason())
.field(TIME.getPreferredName(), String.format(Locale.US, "%.10gms", (double) (getTime() / 1000000.0)));
if (!children.isEmpty()) {