mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
Merge pull request #2181 from tb365/bugfix/tb-aws-cpu-bugfix
cpu core bugfix
This commit is contained in:
@@ -592,7 +592,7 @@ func (self *SRegion) GetInstances(zoneId string, ids []string, offset int, limit
|
||||
}
|
||||
|
||||
host := szone.getHost()
|
||||
|
||||
vcpu := int(*instance.CpuOptions.CoreCount) * int(*instance.CpuOptions.ThreadsPerCore)
|
||||
sinstance := SInstance{
|
||||
RegionId: self.RegionId,
|
||||
host: host,
|
||||
@@ -600,7 +600,7 @@ func (self *SRegion) GetInstances(zoneId string, ids []string, offset int, limit
|
||||
InstanceId: *instance.InstanceId,
|
||||
ImageId: *instance.ImageId,
|
||||
InstanceType: *instance.InstanceType,
|
||||
Cpu: int(*instance.CpuOptions.CoreCount),
|
||||
Cpu: vcpu,
|
||||
IoOptimized: *instance.EbsOptimized,
|
||||
KeyPairName: *instance.KeyName,
|
||||
CreationTime: *instance.LaunchTime,
|
||||
|
||||
Reference in New Issue
Block a user