Zabbix 1.1.3
In cpustat.c lines 340 and 341, the variables cpu_nice and cpu_system are reversed.
cpu_nice = (float)stats.psd_cpu_time[CP_SYS];
cpu_system = (float)stats.psd_cpu_time[CP_NICE];
It should be
cpu_system = (float)stats.psd_cpu_time[CP_SYS];
cpu_nice = (float)stats.psd_cpu_time[CP_NICE];
In cpustat.c lines 340 and 341, the variables cpu_nice and cpu_system are reversed.
cpu_nice = (float)stats.psd_cpu_time[CP_SYS];
cpu_system = (float)stats.psd_cpu_time[CP_NICE];
It should be
cpu_system = (float)stats.psd_cpu_time[CP_SYS];
cpu_nice = (float)stats.psd_cpu_time[CP_NICE];
Comment