cabana: fixed incorrect comparison (#28007)

pull/28008/head
Dean Lee 2 years ago committed by GitHub
parent 5c2fa5cabf
commit aabbe9ff18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tools/cabana/streams/abstractstream.cc

@ -124,7 +124,9 @@ void AbstractStream::mergeEvents(std::vector<Event *>::const_iterator first, std
parseEvents(new_events, first, last);
for (auto &[id, new_e] : new_events) {
auto &e = events_[id];
auto it = std::upper_bound(e.cbegin(), e.cend(), new_e.front());
auto it = std::upper_bound(e.cbegin(), e.cend(), new_e.front(), [](const CanEvent *l, const CanEvent *r) {
return l->mono_time < r->mono_time;
});
e.insert(it, new_e.cbegin(), new_e.cend());
}
}

Loading…
Cancel
Save