diff options
author | Jan Wagner <waja@cyconet.org> | 2014-01-24 17:55:57 +0100 |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2014-01-24 17:55:57 +0100 |
commit | c5dc81cd2889421115b4d33b959b0ff8e2df9f6c (patch) | |
tree | 2ddaa590bdcd07a318d8c12cc60a6349cc3542db /plugins/check_ntp_time.c | |
parent | c2c24bc5648d087b62b0bf54df3508c3bf433010 (diff) | |
download | monitoring-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_time.c')
-rw-r--r-- | plugins/check_ntp_time.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/check_ntp_time.c b/plugins/check_ntp_time.c index 746b6831..f8564571 100644 --- a/plugins/check_ntp_time.c +++ b/plugins/check_ntp_time.c | |||
@@ -55,7 +55,9 @@ void print_help (void); | |||
55 | void print_usage (void); | 55 | void print_usage (void); |
56 | 56 | ||
57 | /* number of times to perform each request to get a good average. */ | 57 | /* number of times to perform each request to get a good average. */ |
58 | #ifndef AVG_NUM | ||
58 | #define AVG_NUM 4 | 59 | #define AVG_NUM 4 |
60 | #endif | ||
59 | 61 | ||
60 | /* max size of control message data */ | 62 | /* max size of control message data */ |
61 | #define MAX_CM_SIZE 468 | 63 | #define MAX_CM_SIZE 468 |