提交 14c021d9 编写于 作者: wu-sheng's avatar wu-sheng

1.修复调用链webui展示时,总调用时间可能为负数的问题。

上级 3ba2f221
......@@ -109,7 +109,7 @@ public class HelloSkyWalkingUICtl {
List<TraceLogEntry> valueList = new ArrayList<TraceLogEntry>();
valueList.addAll(traceLogMap.values());
final List<Long> endTime = new ArrayList<Long>();
endTime.add(0, 0l);
endTime.add(0, valueList.get(0).getEndDate());
Collections.sort(valueList, new Comparator<TraceLogEntry>() {
@Override
public int compare(TraceLogEntry arg0, TraceLogEntry arg1) {
......@@ -123,10 +123,6 @@ public class HelloSkyWalkingUICtl {
return arg0.getColId().compareTo(arg1.getColId());
}
});
// int m = 1;
// for (TraceLogEntry tmpEntry : valueList) {
// logger.info("sort result level:{} : {}", m++, tmpEntry);
// }
long beginTime = valueList.get(0).getStartDate();
root.put("traceId", traceId);
root.put("valueList", valueList);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册