From 57063cbeeb8d6142cab7ab479ae5f3f1a81e6e47 Mon Sep 17 00:00:00 2001 From: Andris Zeila Date: Mon, 11 Aug 2014 11:48:13 +0000 Subject: ...G...... [ZBX-8455] moved performance counter interval check out of add_perf_counter() function, renamed MAX_CPU_HISTORY define to MAX_COLLECTOR_PERIOD --- include/sysinfo.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/sysinfo.h') 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 -- cgit v1.2.3