Projet

Général

Profil

Révision 79f72b87

ID79f72b87fb98d281a218d0524963a2f15d760b88
Parent 16b017fc
Enfant 99d3a426

Ajouté par Steve Schnepp il y a plus de 10 ans

multicpu1sec-c: fix value (remove idle)

Voir les différences:

plugins/system/multicpu1sec/multicpu1sec-c.c
133 133
			long usr, nice, sys, idle, iowait, irq, softirq;
134 134
			sscanf(buffer, "%s %ld %ld %ld %ld %ld", cpu_id, &usr, &nice, &sys, &idle, &iowait, &irq, &softirq);
135 135

  
136
			long used = usr + nice + sys + idle + iowait + irq + softirq;
136
			long used = usr + nice + sys + iowait + irq + softirq;
137 137

  
138 138
			fprintf(cache_file, "%s.value %ld:%ld\n", cpu_id, epoch, used);
139 139
		}

Formats disponibles : Unified diff