mirror of
				https://github.com/Icinga/icinga2.git
				synced 2025-11-04 05:34:12 +01:00 
			
		
		
		
	* BugFix : Wrong operator on stride variable causing incorrect behaviour ( #6749 )
This commit is contained in:
		
							parent
							
								
									a47044fa08
								
							
						
					
					
						commit
						a02b7ac155
					
				@ -42,7 +42,7 @@ bool LegacyTimePeriod::IsInTimeRange(tm *begin, tm *end, int stride, tm *referen
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	int daynumber = (tsref - tsbegin) / (24 * 60 * 60);
 | 
						int daynumber = (tsref - tsbegin) / (24 * 60 * 60);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (stride > 1 && daynumber % stride == 0)
 | 
						if (stride > 1 && daynumber % stride > 0)
 | 
				
			||||||
		return false;
 | 
							return false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return true;
 | 
						return true;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user