mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 04:40:05 +00:00
Get next day in addition to previous when querying volume times
This commit is contained in:
parent
4bba7f4c64
commit
69730515aa
2 changed files with 4 additions and 3 deletions
|
|
@ -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(),
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue