Skip to content

Commit ab2f2a2

Browse files
committed
update rounding
1 parent d85d0ce commit ab2f2a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nise/generators/aws/ec2_generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def _update_data(self, row, start, end, **kwargs):
198198
row["pricing/term"] = "OnDemand"
199199
row["pricing/unit"] = "Hrs"
200200
row["savingsPlan/SavingsPlanEffectiveCost"] = saving
201-
row["savingsPlan/SavingsPlanRate"] = round(float(saving) / float(amount), 5) if saving and amount else saving
201+
row["savingsPlan/SavingsPlanRate"] = round(float(saving) / float(amount), 4) if saving and amount else saving
202202

203203
# Overwrite lineItem/LineItemType for items with applied Savings plan
204204
if saving is not None:

0 commit comments

Comments
 (0)