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 8f049c1 commit a079102Copy full SHA for a079102
citc/aws.py
@@ -86,8 +86,8 @@ def get_types_info(client):
86
s: {
87
"memory": d["MemoryInfo"]["SizeInMiB"]
88
- 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"],
+ "cores_per_socket": d["VCpuInfo"].get("DefaultCores", d["VCpuInfo"]["DefaultVCpus"]),
+ "threads_per_core": d["VCpuInfo"].get("DefaultThreadsPerCore", 1),
91
"arch": d["ProcessorInfo"]["SupportedArchitectures"][0],
92
}
93
for s, d in instances.items()
0 commit comments