Commit a017e493 authored by limingbo's avatar limingbo

test mergemulti traj at one place

parent 60333e15
......@@ -220,11 +220,11 @@ void filterByPosition(
}
}
}
pair<size_t, size_t> longestIndex;
uint32_t longestPeriod = 0;
pair<size_t, size_t> longestIndex = period;
uint32_t longestPeriod = period.second - period.first;
for(auto index : aroundIndexVec){
auto period = ret.at(index.first).periods.at(index.second);
uint32_t periodDuration = period.second - period.first;
auto aroundPeriod = ret.at(index.first).periods.at(index.second);
uint32_t periodDuration = aroundPeriod.second - aroundPeriod.first;
if(periodDuration > longestPeriod){
longestPeriod = periodDuration;
longestIndex = index;
......
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