mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
Remove unnecessary call to the server when we should be going to the cache
# HG changeset patch # User Stephen Turner <stephen.turner@citrix.com> # Date 1384881463 0 # Tue Nov 19 17:17:43 2013 +0000 # Node ID 6db4e665ff9e4fe9df6f474a94a0cdfbb6e23764 # Parent 030ebb6e2f6964a4dbf9d5602c69cb23fcc0cbdb Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
c5e37d6ee3
commit
20ec1d9200
@ -249,9 +249,7 @@ namespace XenAdmin.SettingsPanels
|
||||
}
|
||||
else
|
||||
{
|
||||
var enabledRefs = GPU_group.get_enabled_VGPU_types(Connection.Session, gpu_group.opaque_ref);
|
||||
var enabledTypes = Connection.ResolveAll(enabledRefs);
|
||||
|
||||
var enabledTypes = Connection.ResolveAll(gpu_group.enabled_VGPU_types);
|
||||
var allTypes = Connection.ResolveAll(gpu_group.supported_VGPU_types);
|
||||
|
||||
var disabledTypes = allTypes.FindAll(t => !enabledTypes.Exists(e => e.opaque_ref == t.opaque_ref));
|
||||
|
Loading…
Reference in New Issue
Block a user