Avoid sending WARNINGS if api usage value is zero
This commit is contained in:
		
							parent
							
								
									87914be4af
								
							
						
					
					
						commit
						395ab10c0c
					
				@ -181,7 +181,7 @@ public class TenantApiUsageState {
 | 
			
		||||
            long threshold = getProfileThreshold(recordKey);
 | 
			
		||||
            long warnThreshold = getProfileWarnThreshold(recordKey);
 | 
			
		||||
            ApiUsageStateValue tmpValue;
 | 
			
		||||
            if (threshold == 0 || value < warnThreshold) {
 | 
			
		||||
            if (threshold == 0 || value == 0 || value < warnThreshold) {
 | 
			
		||||
                tmpValue = ApiUsageStateValue.ENABLED;
 | 
			
		||||
            } else if (value < threshold) {
 | 
			
		||||
                tmpValue = ApiUsageStateValue.WARNING;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user