Skip to content

Commit

Permalink
Solve balance_check issue for instances (#522)
Browse files Browse the repository at this point in the history
* Fix: Solves balance check issue for persistent VMs

Co-authored-by: Andres D. Molins <[email protected]>
  • Loading branch information
2 people authored and hoh committed Nov 24, 2023
1 parent cc801d5 commit a56236e
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:
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 a56236e

Please sign in to comment.