Commit 57e50ef4 authored by gaozhentao's avatar gaozhentao

Merge remote-tracking branch 'origin/dev' into dev

# Conflicts:
#	src/main/java/com/yingxin/prms/service/business/Manager.java
parents fc603755 531b5ce7
...@@ -403,7 +403,9 @@ public class Manager { ...@@ -403,7 +403,9 @@ public class Manager {
for(FlowNode node : flowNodes){ for(FlowNode node : flowNodes){
TcpFlowNodeDto nodeDto = new TcpFlowNodeDto(); TcpFlowNodeDto nodeDto = new TcpFlowNodeDto();
long faultCount=0; long faultCount=0;
if(node.getServerPath()==null || node.getServerPath().isEmpty()){
nodeDto.setCategory("machine");
}else{
try { try {
faultCount = getFaultCount(node.getServerPath()); faultCount = getFaultCount(node.getServerPath());
if(faultCount>0){ if(faultCount>0){
...@@ -415,6 +417,7 @@ public class Manager { ...@@ -415,6 +417,7 @@ public class Manager {
} catch (Exception e) { } catch (Exception e) {
faultCount = 0; faultCount = 0;
} }
}
nodeDto.setFaultCount((int) faultCount); nodeDto.setFaultCount((int) faultCount);
nodeDto.setKey(node.getCluster_name()); nodeDto.setKey(node.getCluster_name());
nodeDto.setUrl(node.getServerPath()); nodeDto.setUrl(node.getServerPath());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment