mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
[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:
parent
04da4ed5c3
commit
a1e254e7a4
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user