Fix bad toXContent for derivative aggregation

I busted it in the last commit.
This commit is contained in:
Nik Everett 2016-04-15 08:51:22 -04:00
parent a36b6138d7
commit 135511134c
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ public class DerivativePipelineAggregatorBuilder extends PipelineAggregatorBuild
builder.field(GAP_POLICY_FIELD.getPreferredName(), gapPolicy.getName()); builder.field(GAP_POLICY_FIELD.getPreferredName(), gapPolicy.getName());
} }
if (units != null) { if (units != null) {
builder.field(FORMAT_FIELD.getPreferredName(), units); builder.field(UNIT_FIELD.getPreferredName(), units);
} }
return builder; return builder;
} }