mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 10:18:13 +00:00 
			
		
		
		
	Fix the wrong judgment of oom_score_adj
This commit is contained in:
		| @@ -67,7 +67,7 @@ func validateOOMScoreAdjSettingIsInRange(pid int, expectedMinOOMScoreAdj, expect | ||||
| 	if oomScore < expectedMinOOMScoreAdj { | ||||
| 		return fmt.Errorf("expected pid %d's oom_score_adj to be >= %d; found %d", pid, expectedMinOOMScoreAdj, oomScore) | ||||
| 	} | ||||
| 	if oomScore < expectedMaxOOMScoreAdj { | ||||
| 	if oomScore >= expectedMaxOOMScoreAdj { | ||||
| 		return fmt.Errorf("expected pid %d's oom_score_adj to be < %d; found %d", pid, expectedMaxOOMScoreAdj, oomScore) | ||||
| 	} | ||||
| 	return nil | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 tanjing2020
					tanjing2020