Commit 9cc92556 authored by limingbo's avatar limingbo

add period

parent b15a377f
......@@ -189,12 +189,14 @@ vector<pair<string, vector<pair<double, double>>>> crossFilter(
if(!inPeriod){
start = query.info;
inPeriod = true;
LOG(INFO) << setprecision(15) << "start: " << start;
}
}else if(sqr_distance > 15){
if(inPeriod){
end = query.info;
inPeriod = false;
timePeriods.push_back(make_pair(start, end));
LOG(INFO) << setprecision(15) << "end: " << end;
}
}
currTime = query.info;
......
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