[SIGAR-106] Add cpu irq, soft_irq and steal

This commit is contained in:
Doug MacEachern committed 2008-05-24 15:12:06 +00:00
1 parent e3510e0805
commit 9a1f45cd7b
12 files changed
+118 -9

No files matched your search

+3
View File
@@ -104,6 +104,9 @@ int sigar_cpu_get(sigar_t *sigar, sigar_cpu_t *cpu)
cpu->sys = sysinfo.si_sys;
cpu->idle = sysinfo.si_idle;
cpu->wait = 0; /*N/A?*/
cpu->irq = 0; /*N/A*/
cpu->soft_irq = 0; /*N/A*/
cpu->steal = 0; /*N/A*/
cpu->total = cpu->user + cpu->nice + cpu->sys + cpu->idle + cpu->wait;
return SIGAR_OK;