提交 778c06b7 编写于 作者: M michael4338 提交者: Xiangquan Xiao

e2e stat fix

上级 36c936eb
......@@ -177,9 +177,9 @@ void LatencyMonitor::AggregateLatency() {
std::tie(begin_time, std::ignore, module_name) = *iter;
if (e2e_begin_time == 0 && module_name == kE2EStartPoint) {
e2e_begin_time = begin_time;
}
if (module_name != kE2EStartPoint &&
e2e_latencies.find(module_name) == e2e_latencies.end()) {
} else if (module_name != kE2EStartPoint &&
e2e_begin_time != 0 &&
e2e_latencies.find(module_name) == e2e_latencies.end()) {
const auto duration = begin_time - e2e_begin_time;
e2e_latencies[module_name] = duration;
e2es_track[module_name].push_back(duration);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册