Fix bad cast from u16_t to ssize_t
				
					
				
			This commit is contained in:
		
							parent
							
								
									7ee000e54a
								
							
						
					
					
						commit
						f92baba71c
					
				@ -50,7 +50,7 @@ int procfs_getloadavg(struct load *loadavg, int nelem)
 | 
			
		||||
			slot = (latest - h + _LOAD_HISTORY) % _LOAD_HISTORY;
 | 
			
		||||
			loadavg[p].proc_load +=
 | 
			
		||||
				 loadinfo.proc_load_history[slot];
 | 
			
		||||
			l += (double) loadinfo.proc_load_history[slot];
 | 
			
		||||
			l += (ssize_t) loadinfo.proc_load_history[slot];
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		/* The load average over this number of minutes is the number
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user