diff options
| author | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-05-14 14:22:53 +0000 |
|---|---|---|
| committer | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-05-14 14:22:53 +0000 |
| commit | 3f2917ce4aee15bcacfe55f6ef21fbd87dda2f32 (patch) | |
| tree | ed182037086ae02a418ded86fb0491b06eca5ac4 /src/zabbix_agent | |
| parent | 4c861b4b4472ba51b9c0a0218f1c08f30a0732c5 (diff) | |
| download | zabbix-3f2917ce4aee15bcacfe55f6ef21fbd87dda2f32.tar.gz zabbix-3f2917ce4aee15bcacfe55f6ef21fbd87dda2f32.tar.xz zabbix-3f2917ce4aee15bcacfe55f6ef21fbd87dda2f32.zip | |
- [DEV-137] Misc bugs and improvements
git-svn-id: svn://svn.zabbix.com/trunk@5703 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/zabbix_agent')
| -rw-r--r-- | src/zabbix_agent/perfstat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/zabbix_agent/perfstat.c b/src/zabbix_agent/perfstat.c index 30eeaa38..195aac4e 100644 --- a/src/zabbix_agent/perfstat.c +++ b/src/zabbix_agent/perfstat.c @@ -283,7 +283,10 @@ void collect_perfstat() PDH_STATISTICS statData; PDH_STATUS status; - if (NULL == ppsd->pdh_query) + if (NULL == ppsd->pdh_query) /* collector is not started */ + return; + + if (NULL == ppsd->pPerfCounterList) /* no counters */ return; if (ERROR_SUCCESS != (status = PdhCollectQueryData(ppsd->pdh_query))) { |
