mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:00: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::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 tomorrow = today + std::chrono::days {1};
|
||||
const auto dates = {yesterday, today, tomorrow};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue