]> xenbits.xensource.com Git - libvirt.git/commitdiff
esx: Fix CPU clock Hz to MHz conversion
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 14 Nov 2009 21:52:27 +0000 (22:52 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Sun, 15 Nov 2009 14:22:14 +0000 (15:22 +0100)
src/esx/esx_driver.c

index b84250cfe5f6710a33ebca94cc4c853e8110dc93..5737fe96601a0fe61549d126ab66b11ba04e1104 100644 (file)
@@ -878,7 +878,7 @@ esxNodeGetInfo(virConnectPtr conn, virNodeInfoPtr nodeinfo)
 
     nodeinfo->memory = memorySize / 1024; /* Scale from bytes to kilobytes */
     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->sockets = cpuInfo_numCpuPackages;
     nodeinfo->cores = cpuInfo_numCpuPackages > 0