From 69730515aaa9da3575b543453f8a350a33ab1639 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Sun, 21 May 2023 23:52:03 -0500 Subject: [PATCH] Get next day in addition to previous when querying volume times --- scwx-qt/source/scwx/qt/manager/radar_product_manager.cpp | 5 +++-- scwx-qt/source/scwx/qt/manager/radar_product_manager.hpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scwx-qt/source/scwx/qt/manager/radar_product_manager.cpp b/scwx-qt/source/scwx/qt/manager/radar_product_manager.cpp index b036fb8d..9c5fd712 100644 --- a/scwx-qt/source/scwx/qt/manager/radar_product_manager.cpp +++ b/scwx-qt/source/scwx/qt/manager/radar_product_manager.cpp @@ -708,9 +708,10 @@ RadarProductManager::GetActiveVolumeTimes( { const auto today = std::chrono::floor(time); 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, dates.begin(), dates.end(), diff --git a/scwx-qt/source/scwx/qt/manager/radar_product_manager.hpp b/scwx-qt/source/scwx/qt/manager/radar_product_manager.hpp index 9e74f95b..34c2c6fb 100644 --- a/scwx-qt/source/scwx/qt/manager/radar_product_manager.hpp +++ b/scwx-qt/source/scwx/qt/manager/radar_product_manager.hpp @@ -66,7 +66,7 @@ public: /** * @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 *