[monitoring-plugins] Making AVG_NUM configurable by compiler define ...
Git Repository
git at monitoring-plugins.org
Fri Jan 24 18:30:07 CET 2014
Module: monitoring-plugins
Branch: master
Commit: c5dc81cd2889421115b4d33b959b0ff8e2df9f6c
Author: Jan Wagner <waja at cyconet.org>
Date: Fri Jan 24 17:55:57 2014 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=c5dc81c
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
---
plugins/check_ntp.c | 2 ++
plugins/check_ntp_time.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index 93b2869..6607b4b 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
diff --git a/plugins/check_ntp_time.c b/plugins/check_ntp_time.c
index 746b683..f856457 100644
--- a/plugins/check_ntp_time.c
+++ b/plugins/check_ntp_time.c
@@ -55,7 +55,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
More information about the Commits
mailing list