[CA-225715] Performance Graph reporting for CPU for a VM based on max VCPUs(not current vcpu)

Instead of using VCPUs_max, use VCPUs_at_startup, which is the value set when we change the VCPUs count on the VM. Note that despite its name we don't need to restart to see this value change.

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>
This commit is contained in:
Callum McIntyre 2016-11-02 17:24:51 +00:00
parent 04da4ed5c3
commit a1e254e7a4

View File

@ -404,7 +404,7 @@ namespace XenAdmin.Controls.CustomDataGraph
DesignedGraph cpudg = new DesignedGraph();
cpudg.DisplayName = Messages.GRAPHS_DEFAULT_NAME_CPU;
for (int i = 0; i < vm.VCPUs_max; i++)
for (int i = 0; i < vm.VCPUs_at_startup; i++)
{
AddDataSource(string.Format("vm:{0}:cpu{1}", vm.uuid, i), dsuuids, cpudg);
}