Sometimes level 3 records aren't found by time, ensure a best-effort is always selected

This commit is contained in:
Dan Paulat 2022-09-13 21:21:05 -05:00
parent af77db35a4
commit 690f60f3e3

View file

@ -26,6 +26,11 @@ ReturnType GetBoundedElement(std::map<Key, T>& map, Key key)
// looking for
element = (--it)->second;
}
else
{
// The current element is a good substitute
element = it->second;
}
}
else if (map.size() > 0)
{