Fix collector's class name on response output
This commit is contained in:
parent
c50b22f95f
commit
5cfefe08b0
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue