Convert score automatically to integer
Convert killed_proc_score and trigger_proc_oomscore to integer values
This commit is contained in:
		
							parent
							
								
									81c8333017
								
							
						
					
					
						commit
						da77369418
					
				@ -576,7 +576,7 @@ class OOMAnalyser(object):
 | 
			
		||||
                self.results[item] = '<not found>'
 | 
			
		||||
                continue
 | 
			
		||||
            if item.endswith('_kb') or item.endswith('_pages') or item.endswith('_pid') or \
 | 
			
		||||
                    item == 'trigger_proc_order':
 | 
			
		||||
                    item in ['killed_proc_score', 'trigger_proc_order', 'trigger_proc_oomscore']:
 | 
			
		||||
                try:
 | 
			
		||||
                    self.results[item] = int(self.results[item])
 | 
			
		||||
                except:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user