Skip to content

Commit

Permalink
Fixed unit metadata generation (#1164)
Browse files Browse the repository at this point in the history
Signed-off-by: Gerhard Riegler <gerhard.riegler@gmail.com>
  • Loading branch information
Gerhard R authored and kaikreuzer committed Aug 20, 2016
1 parent 51558ec commit 698f3a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,10 @@ public ParameterOption createOption(String value, String description) {
builder.withMinimum(MetadataUtils.createBigDecimal(dp.getMinValue()));
builder.withMaximum(MetadataUtils.createBigDecimal(dp.getMaxValue()));
builder.withStepSize(MetadataUtils.createBigDecimal(dp.isFloatType() ? new Float(0.1) : 1L));
builder.withUnitLabel(MetadataUtils.getUnit(dp));
}

builder.withPattern(MetadataUtils.getPattern(dp));
builder.withUnitLabel(MetadataUtils.getUnit(dp));
builder.withGroupName(groupName);
parms.add(builder.build());
}
Expand Down

0 comments on commit 698f3a3

Please sign in to comment.