We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 861bb37 commit 1987f10Copy full SHA for 1987f10
citc/aws.py
@@ -82,10 +82,10 @@ def get_types_info(client):
82
for page in client.get_paginator("describe_instance_types").paginate()
83
for i in page["InstanceTypes"]
84
}
85
- aws_mem = d["MemoryInfo"]["SizeInMiB"]
86
return {
87
s: {
88
- "memory": aws_mem - int(math.pow(aws_mem, 0.7) * 0.9 + 500),
+ "memory": d["MemoryInfo"]["SizeInMiB"]
+ - int(math.pow(d["MemoryInfo"]["SizeInMiB"], 0.7) * 0.9 + 500),
89
"cores_per_socket": d["VCpuInfo"]["DefaultCores"],
90
"threads_per_core": d["VCpuInfo"]["DefaultThreadsPerCore"],
91
"arch": d["ProcessorInfo"]["SupportedArchitectures"][0],
0 commit comments