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 e452704 commit 5438213
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 5438213

Please sign in to comment.