Skip to content

Commit 1ead6c1

Browse files
authored
Fix logic check error for update GPU groupDetails (#6405)
1 parent c123c3f commit 1ead6c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/com/cloud/server/StatsCollector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ private void updateGpuEnabledHostsDetails(List<HostVO> hosts) {
692692
}
693693
for (HostVO host : gpuEnabledHosts) {
694694
HashMap<String, HashMap<String, VgpuTypesInfo>> groupDetails = _resourceMgr.getGPUStatistics(host);
695-
if (MapUtils.isEmpty(groupDetails)) {
695+
if (!MapUtils.isEmpty(groupDetails)) {
696696
_resourceMgr.updateGPUDetails(host.getId(), groupDetails);
697697
}
698698
}

0 commit comments

Comments
 (0)