diff options
| author | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-11-10 11:50:40 +0000 |
|---|---|---|
| committer | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-11-10 11:50:40 +0000 |
| commit | fd6ff32ce159e2ea964a8925e609b3d13055ed03 (patch) | |
| tree | c7e6e1170a37e683f8a71e1b73c56783971b1dff /src | |
| parent | 148b57a2f1cc20e6d8959e4e03e16119d85f35d5 (diff) | |
- fixed swapped system CPU and nice CPU stats in ZABBIX agent (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@3446 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src')
| -rw-r--r-- | src/zabbix_agent/cpustat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zabbix_agent/cpustat.c b/src/zabbix_agent/cpustat.c index ce000e24..74a248c0 100644 --- a/src/zabbix_agent/cpustat.c +++ b/src/zabbix_agent/cpustat.c @@ -364,8 +364,8 @@ static int get_cpustat(int *now,float *cpu_user,float *cpu_system,float *cpu_nic pstat_getdynamic(&stats, sizeof( struct pst_dynamic ), 1, 0 ); *cpu_user = (float)stats.psd_cpu_time[CP_USER]; - *cpu_nice = (float)stats.psd_cpu_time[CP_SYS]; - *cpu_system = (float)stats.psd_cpu_time[CP_NICE]; + *cpu_nice = (float)stats.psd_cpu_time[CP_NICE]; + *cpu_system = (float)stats.psd_cpu_time[CP_SYS]; *cpu_idle = (float)stats.psd_cpu_time[CP_IDLE]; #endif /* HAVE_SYS_PSTAT_H */ |
