fixes, allow sats below 1

This commit is contained in:
Believethehype
2023-11-28 17:13:42 +01:00
parent e8d0a945d5
commit e1c09e9e7e
11 changed files with 20 additions and 14 deletions

View File

@@ -149,7 +149,7 @@ def get_amount_per_task(task, dvm_config, duration=1):
duration = 1
for dvm in dvm_config.SUPPORTED_DVMS: # this is currently just one
if dvm.TASK == task:
amount = dvm.COST * int(duration)
amount = dvm.COST * duration
return amount
else:
print("[" + dvm_config.SUPPORTED_DVMS[