Skip to content

Commit

Permalink
update rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
esebesto committed Aug 19, 2024
1 parent d85d0ce commit ab2f2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nise/generators/aws/ec2_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def _update_data(self, row, start, end, **kwargs):
row["pricing/term"] = "OnDemand"
row["pricing/unit"] = "Hrs"
row["savingsPlan/SavingsPlanEffectiveCost"] = saving
row["savingsPlan/SavingsPlanRate"] = round(float(saving) / float(amount), 5) if saving and amount else saving
row["savingsPlan/SavingsPlanRate"] = round(float(saving) / float(amount), 4) if saving and amount else saving

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

0 comments on commit ab2f2a2

Please sign in to comment.