From 7f74d1ba7c35a7d2db7d64dd4eabaf460cb064b7 Mon Sep 17 00:00:00 2001 From: "Andres D. Molins" Date: Thu, 16 Nov 2023 14:54:21 +0100 Subject: [PATCH] Fix: Avoid condition for persistent VMs. --- src/aleph/services/cost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aleph/services/cost.py b/src/aleph/services/cost.py index 02063cd5c..ed3d57de3 100644 --- a/src/aleph/services/cost.py +++ b/src/aleph/services/cost.py @@ -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