Get next day in addition to previous when querying volume times

This commit is contained in:
Dan Paulat 2023-05-21 23:52:03 -05:00
parent 4bba7f4c64
commit 69730515aa
2 changed files with 4 additions and 3 deletions

View file

@ -708,9 +708,10 @@ RadarProductManager::GetActiveVolumeTimes(
{ {
const auto today = std::chrono::floor<std::chrono::days>(time); const auto today = std::chrono::floor<std::chrono::days>(time);
const auto yesterday = today - std::chrono::days {1}; const auto yesterday = today - std::chrono::days {1};
const auto dates = {yesterday, today}; const auto tomorrow = today + std::chrono::days {1};
const auto dates = {yesterday, today, tomorrow};
// For today and yesterday (in parallel) // For yesterday, today and tomorrow (in parallel)
std::for_each(std::execution::par_unseq, std::for_each(std::execution::par_unseq,
dates.begin(), dates.begin(),
dates.end(), dates.end(),

View file

@ -66,7 +66,7 @@ public:
/** /**
* @brief Gets a merged list of the volume times for products with refresh * @brief Gets a merged list of the volume times for products with refresh
* enabled. The volume times will be for the current and previous day. * enabled. The volume times will be for the previous, current and next day.
* *
* @param [in] time Current date to provide to volume time query * @param [in] time Current date to provide to volume time query
* *