aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_ntp.c
diff options
context:
space:
mode:
authorGravatar Jan Wagner <waja@cyconet.org> 2014-01-24 17:55:57 +0100
committerGravatar Jan Wagner <waja@cyconet.org> 2014-01-24 17:55:57 +0100
commitc5dc81cd2889421115b4d33b959b0ff8e2df9f6c (patch)
tree2ddaa590bdcd07a318d8c12cc60a6349cc3542db /plugins/check_ntp.c
parentc2c24bc5648d087b62b0bf54df3508c3bf433010 (diff)
downloadmonitoring-plugins-c5dc81cd2889421115b4d33b959b0ff8e2df9f6c.tar.gz
Making AVG_NUM configurable by compiler define (Submitted by Lars)
A minor change which makes the AVG_NUM configurable by compiler define. Partly Closed #956 and Closes #1166
Diffstat (limited to 'plugins/check_ntp.c')
-rw-r--r--plugins/check_ntp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index 93b28690..6607b4b4 100644
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
@@ -54,7 +54,9 @@ void print_help (void);
void print_usage (void);
/* number of times to perform each request to get a good average. */
+#ifndef AVG_NUM
#define AVG_NUM 4
+#endif
/* max size of control message data */
#define MAX_CM_SIZE 468