mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
esx: Fix CPU clock Hz to MHz conversion
This commit is contained in:
parent
03a155a25b
commit
d42cfb4ef0
@ -878,7 +878,7 @@ esxNodeGetInfo(virConnectPtr conn, virNodeInfoPtr nodeinfo)
|
|||||||
|
|
||||||
nodeinfo->memory = memorySize / 1024; /* Scale from bytes to kilobytes */
|
nodeinfo->memory = memorySize / 1024; /* Scale from bytes to kilobytes */
|
||||||
nodeinfo->cpus = cpuInfo_numCpuCores;
|
nodeinfo->cpus = cpuInfo_numCpuCores;
|
||||||
nodeinfo->mhz = cpuInfo_hz / (1024 * 1024); /* Scale from hz to mhz */
|
nodeinfo->mhz = cpuInfo_hz / (1000 * 1000); /* Scale from hz to mhz */
|
||||||
nodeinfo->nodes = numaInfo_numNodes;
|
nodeinfo->nodes = numaInfo_numNodes;
|
||||||
nodeinfo->sockets = cpuInfo_numCpuPackages;
|
nodeinfo->sockets = cpuInfo_numCpuPackages;
|
||||||
nodeinfo->cores = cpuInfo_numCpuPackages > 0
|
nodeinfo->cores = cpuInfo_numCpuPackages > 0
|
||||||
|
Loading…
Reference in New Issue
Block a user