diff --git a/ov_core/src/feat/FeatureDatabase.cpp b/ov_core/src/feat/FeatureDatabase.cpp index 5cb8de5ce..bd2f4d914 100644 --- a/ov_core/src/feat/FeatureDatabase.cpp +++ b/ov_core/src/feat/FeatureDatabase.cpp @@ -267,7 +267,7 @@ double FeatureDatabase::get_oldest_timestamp() { double oldest_time = -1; for (auto const &feat : features_idlookup) { for (auto const &camtimepair : feat.second->timestamps) { - if (!camtimepair.second.empty() && (oldest_time == -1 || oldest_time < camtimepair.second.at(0))) { + if (!camtimepair.second.empty() && (oldest_time == -1 || oldest_time > camtimepair.second.at(0))) { oldest_time = camtimepair.second.at(0); } }