Parcourir la source

Missed adding the compiler define changes in check_ntp_time when it was added to check_ntp.c. Thanks for the heads up waja.

abrist il y a 12 ans
Parent
commit
15913dd288
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      plugins/check_ntp_time.c

+ 2 - 1
plugins/check_ntp_time.c

@@ -55,8 +55,9 @@ void print_help (void);
 void print_usage (void);
 void print_usage (void);
 
 
 /* number of times to perform each request to get a good average. */
 /* number of times to perform each request to get a good average. */
+#ifndef AVG_NUM
 #define AVG_NUM 4
 #define AVG_NUM 4
-
+#endif
 /* max size of control message data */
 /* max size of control message data */
 #define MAX_CM_SIZE 468
 #define MAX_CM_SIZE 468