Skip to content

Commit

Permalink
Fix: Avoid condition for persistent VMs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres D. Molins committed Nov 16, 2023
1 parent 1fe9c7a commit 7f74d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aleph/services/cost.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _get_nb_compute_units(content: ExecutableContent) -> int:

def _get_compute_unit_multiplier(content: ExecutableContent) -> int:
compute_unit_multiplier = 1
if content.environment.internet and isinstance(content, ProgramContent):
if isinstance(content, ProgramContent) and not content.on.persistent and content.environment.internet:
compute_unit_multiplier += 1
return compute_unit_multiplier

Expand Down

0 comments on commit 7f74d1b

Please sign in to comment.