Skip to content

Commit

Permalink
Fix: Added Decimal into additional_storage_hour_price variable defini…
Browse files Browse the repository at this point in the history
…tion.
  • Loading branch information
nesitor committed Jan 18, 2024
1 parent 872dcfc commit 1b74307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aleph/services/cost.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def get_additional_storage_flow_price(
content: ExecutableContent, session: DbSession
) -> Decimal:
# TODO: Use PAYMENT_PRICING_AGGREGATE when possible
additional_storage_hour_price = 0.000000977
additional_storage_second_price = Decimal(additional_storage_hour_price) / Decimal(HOUR)
additional_storage_hour_price = Decimal(0.000000977)
additional_storage_second_price = additional_storage_hour_price / Decimal(HOUR)
nb_compute_units = _get_nb_compute_units(content)
free_storage_per_compute_unit = 2 * GiB if not content.on.persistent else 20 * GiB

Expand Down

0 comments on commit 1b74307

Please sign in to comment.