summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey C. Ollie <jeff@ocjtech.us>2008-08-20 16:37:07 -0500
committerJeffrey C. Ollie <jeff@ocjtech.us>2008-08-20 16:37:07 -0500
commit2e621e965470ae00f0291e3938436622315a94ff (patch)
tree07e0d182c4d311a38ea0906e836d205cccfaaf12
parent98b5535d54e82d4f131fd6940c82b22018b26c6d (diff)
downloadzabbix-cpustats.tar.gz
zabbix-cpustats.tar.xz
zabbix-cpustats.zip
Get rid of sscanf format char.cpustats
-rw-r--r--src/zabbix_agent/cpustat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zabbix_agent/cpustat.c b/src/zabbix_agent/cpustat.c
index c16895f3..75de95d5 100644
--- a/src/zabbix_agent/cpustat.c
+++ b/src/zabbix_agent/cpustat.c
@@ -327,7 +327,7 @@ static int get_cpustat(
{
if(strstr(line, cpu_name) == NULL) continue;
- sscanf(line, "%*s " ZBX_FS_UI64 " " ZBX_FS_UI64 " " ZBX_FS_UI64 " " ZBX_FS_UI64 " " ZBX_FS_UI64 " " ZBX_FS_UI64 " " ZBX_FS_UI64 " " ZBX_FS_UI64 " " ZBX_FS_UI64,
+ sscanf(line, "%*s " ZBX_FS_UI64 " " ZBX_FS_UI64 " " ZBX_FS_UI64 " " ZBX_FS_UI64 " " ZBX_FS_UI64 " " ZBX_FS_UI64 " " ZBX_FS_UI64 " " ZBX_FS_UI64,
cpu_user, cpu_nice, cpu_system, cpu_idle, cpu_iowait, cpu_irq, cpu_softirq, cpu_steal);
break;
}