fix(资源池): 修复资源池容量显示不正确问题

This commit is contained in:
guoyuqi 2024-10-24 16:01:58 +08:00 committed by Craftsman
parent 1afb421f05
commit a53c2b75bf
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ public class TestResourcePoolService {
int occupiedConcurrentNumber = 0;
for (TestResourceNodeDTO testResourceNodeDTO : testResourceDTO.getNodesList()) {
ResourcePoolNodeMetric nodeMetric = getNodeMetric(testResourceNodeDTO.getIp(), testResourceNodeDTO.getPort());
concurrentNumber = concurrentNumber + nodeMetric.getConcurrentNumber();
concurrentNumber = concurrentNumber + testResourceNodeDTO.getConcurrentNumber();
occupiedConcurrentNumber = occupiedConcurrentNumber + nodeMetric.getOccupiedConcurrentNumber();
}
resourcePoolNodeMetric.setConcurrentNumber(concurrentNumber);