Prevent the radar product cache limit from being set too small

This commit is contained in:
Dan Paulat 2024-11-20 07:38:32 -06:00
parent f7949cc404
commit 881502c970
2 changed files with 2 additions and 1 deletions

View file

@ -1480,7 +1480,7 @@ std::vector<std::string> RadarProductManager::GetLevel3Products()
void RadarProductManager::SetCacheLimit(size_t cacheLimit)
{
p->cacheLimit_ = cacheLimit;
p->cacheLimit_ = std::max<std::size_t>(cacheLimit, 6u);
}
void RadarProductManager::UpdateAvailableProducts()

View file

@ -132,6 +132,7 @@ public:
/**
* @brief Set the maximum number of products of each type that may be cached.
* The cache limit cannot be set lower than 6.
*
* @param [in] cacheLimit The maximum number of products of each type
*/