Projet

Général

Profil

Révision 99d3a426

ID99d3a426271e072375b3e3e7a579b36eccb04766
Parent 79f72b87
Enfant 308ba475

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

multicpu1sec-c: fix the /proc/stat parsing

Voir les différences:

plugins/system/multicpu1sec/multicpu1sec-c.c
131 131

  
132 132
			char cpu_id[64];
133 133
			long usr, nice, sys, idle, iowait, irq, softirq;
134
			sscanf(buffer, "%s %ld %ld %ld %ld %ld", cpu_id, &usr, &nice, &sys, &idle, &iowait, &irq, &softirq);
134
			sscanf(buffer, "%s %ld %ld %ld %ld %ld %ld %ld", cpu_id, &usr, &nice, &sys, &idle, &iowait, &irq, &softirq);
135 135

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

  

Formats disponibles : Unified diff