diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2014-08-11 15:48:13 +0400 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2014-08-11 15:48:13 +0400 |
commit | 57063cbeeb8d6142cab7ab479ae5f3f1a81e6e47 (patch) | |
tree | 5655d2af1dfdc267c9beb4a567abe1f4758b5d81 /include/sysinfo.h | |
parent | a0792652049d64e6a240d1fca71ba4499759b900 (diff) |
...G...... [ZBX-8455] moved performance counter interval check out of add_perf_counter() function, renamed MAX_CPU_HISTORY define to MAX_COLLECTOR_PERIOD
Diffstat (limited to 'include/sysinfo.h')
-rw-r--r-- | include/sysinfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sysinfo.h b/include/sysinfo.h index dbd19db123a..5f900558c8e 100644 --- a/include/sysinfo.h +++ b/include/sysinfo.h @@ -129,6 +129,10 @@ extern int CONFIG_UNSAFE_USER_PARAMETERS; #define ZBX_AVG15 2 #define ZBX_AVG_COUNT 3 +#ifdef _WINDOWS +# define MAX_COLLECTOR_PERIOD (15 * SEC_PER_MIN) +#endif + #define ZBX_CPU_STATE_USER 0 #define ZBX_CPU_STATE_SYSTEM 1 #define ZBX_CPU_STATE_NICE 2 |