Révision b0e8dcea
multicpu1sec-c: using DERIVE
We just delegate the whole CPU % computing to RRD
| plugins/system/multicpu1sec/multicpu1sec-c.c | ||
|---|---|---|
| 51 | 51 |
for (i = 0; i < ncpu; i++) {
|
| 52 | 52 |
printf("cpu%d.label CPU %d\n", i, i);
|
| 53 | 53 |
printf("cpu%d.draw %s\n", i, "AREASTACK");
|
| 54 |
printf("cpu%d.type %s\n", i, "DERIVE");
|
|
| 54 | 55 |
printf("cpu%d.min 0\n", i);
|
| 55 | 56 |
} |
| 56 | 57 |
|
Formats disponibles : Unified diff