mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 03:10:04 +00:00
Don't query for NEXRAD data at the epoch
This commit is contained in:
parent
0f215a9469
commit
8d1fcfec7f
1 changed files with 8 additions and 1 deletions
|
|
@ -1048,7 +1048,14 @@ void RadarProductManagerImpl::PopulateProductTimes(
|
||||||
std::shared_mutex& productRecordMutex,
|
std::shared_mutex& productRecordMutex,
|
||||||
std::chrono::system_clock::time_point time)
|
std::chrono::system_clock::time_point time)
|
||||||
{
|
{
|
||||||
const auto today = std::chrono::floor<std::chrono::days>(time);
|
const auto today = std::chrono::floor<std::chrono::days>(time);
|
||||||
|
|
||||||
|
// Don't query for the epoch
|
||||||
|
if (today == std::chrono::system_clock::time_point {})
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const auto yesterday = today - std::chrono::days {1};
|
const auto yesterday = today - std::chrono::days {1};
|
||||||
const auto tomorrow = today + std::chrono::days {1};
|
const auto tomorrow = today + std::chrono::days {1};
|
||||||
const auto dates = {yesterday, today, tomorrow};
|
const auto dates = {yesterday, today, tomorrow};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue