fold CP_INTR into CP_SYS
This commit is contained in:
		
							parent
							
								
									6c1167c4d7
								
							
						
					
					
						commit
						1145f83c97
					
				@ -476,9 +476,9 @@ int sigar_cpu_get(sigar_t *sigar, sigar_cpu_t *cpu)
 | 
			
		||||
 | 
			
		||||
    cpu->user = cp_time[CP_USER];
 | 
			
		||||
    cpu->nice = cp_time[CP_NICE];
 | 
			
		||||
    cpu->sys  = cp_time[CP_SYS];
 | 
			
		||||
    cpu->sys  = cp_time[CP_SYS] + cp_time[CP_INTR];
 | 
			
		||||
    cpu->idle = cp_time[CP_IDLE];
 | 
			
		||||
    cpu->wait = cp_time[CP_INTR];
 | 
			
		||||
    cpu->wait = 0; /*N/A*/
 | 
			
		||||
    cpu->total = cpu->user + cpu->nice + cpu->sys + cpu->idle;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user