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 cd4cdd4 commit 861bb37Copy full SHA for 861bb37
citc/aws.py
@@ -82,9 +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: {
- "memory": d["MemoryInfo"]["SizeInMiB"] - int(math.pow(d["MemoryInfo"]["SizeInMiB"], 0.7) * 0.9 + 500),
88
+ "memory": aws_mem - int(math.pow(aws_mem, 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