Commit fc603755 authored by gaozhentao's avatar gaozhentao

1

parent 770f3f19
......@@ -403,6 +403,7 @@ public class Manager {
for(FlowNode node : flowNodes){
TcpFlowNodeDto nodeDto = new TcpFlowNodeDto();
long faultCount=0;
try {
faultCount = getFaultCount(node.getServerPath());
if(faultCount>0){
......@@ -433,8 +434,14 @@ public class Manager {
String point = line.getPoints();
if(point!=null && point.length()>0){
point = point.substring(1,point.length()-2);
List points = Arrays.asList(point.split(","));
lineDto.setPoints(points);
point = point.replaceAll("\\\\", "");
point = point.replaceAll("\"", "");
List list = new ArrayList();
String [] mapArray = point.split(",");
for (int j = 0; j < mapArray.length; j++) {
list.add(Double.valueOf(mapArray[j]));
}
lineDto.setPoints(list);
}else{
lineDto.setPoints(null);
}
......
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