mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 08:20:05 +00:00 
			
		
		
		
	Make radar data fall back if it ends up being too old
This commit is contained in:
		
							parent
							
								
									2821eff71f
								
							
						
					
					
						commit
						781aa40e8c
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -1548,8 +1548,8 @@ RadarProductManager::GetLevel2Data(wsr88d::rda::DataBlockType dataBlockType, | |||
|    std::vector<float>                          elevationCuts {}; | ||||
|    std::chrono::system_clock::time_point       foundTime {}; | ||||
| 
 | ||||
|    const bool isEpox = time == std::chrono::system_clock::time_point{}; | ||||
|    bool needArchive = true; | ||||
|    const bool        isEpox = time == std::chrono::system_clock::time_point {}; | ||||
|    bool              needArchive   = true; | ||||
|    static const auto maxChunkDelay = std::chrono::minutes(10); | ||||
|    const std::chrono::system_clock::time_point firstValidChunkTime = | ||||
|       (isEpox ? std::chrono::system_clock::now() : time) - maxChunkDelay; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak