Commit 4c6560b9 authored by limingbo's avatar limingbo

add period

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