Skip to content

Commit

Permalink
CPU is nicer as a float
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Oct 31, 2023
1 parent 6d9594a commit 68979ff
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ def _by_type_name(ec2: EC2InstanceType) -> bool:
node_resources[DEFAULT_SINGLE_SERVICE_NAME], ImageResources
) # nosec
image_resources: ImageResources = node_resources[DEFAULT_SINGLE_SERVICE_NAME]
image_resources.resources["CPU"].set_value(selected_ec2_instance_type.cpus)
image_resources.resources["CPU"].set_value(
float(selected_ec2_instance_type.cpus)
)
image_resources.resources["RAM"].set_value(
selected_ec2_instance_type.ram - _RAM_SAFE_MARGIN
)
Expand Down

0 comments on commit 68979ff

Please sign in to comment.