[Nut-upsdev] Re: [nut-commits] svn commit r585 - in trunk: . conf server

Peter Selinger selinger at mathstat.dal.ca
Thu Nov 16 21:33:20 CET 2006


It looks like the old default was 15 seconds, and the new default is 5
seconds. Was that intentional? -- Peter

Arjen de Korte wrote:
> 
> Modified: trunk/server/upsd.c
> ==============================================================================
> --- trunk/server/upsd.c	(original)
> +++ trunk/server/upsd.c	Thu Nov 16 21:16:40 2006
> @@ -45,7 +45,7 @@
>  	upstype	*firstups = NULL;
>  
>  	/* default 15 seconds before data is marked stale */
> -	int	maxage = 15;
> +	int	maxage = 15, maxinit = 5;
>  
>  	/* preloaded to STATEPATH in main, can be overridden via upsd.conf */
>  	char	*statepath = NULL;
> 
> Modified: trunk/server/upsd.h
> ==============================================================================
> --- trunk/server/upsd.h	(original)
> +++ trunk/server/upsd.h	Thu Nov 16 21:16:40 2006
> @@ -43,7 +43,6 @@
>  #include "ctype.h"
>  #include "upstype.h"
>  
> -#define INITIAL_WAIT_MAX 15	/* max 15 seconds for DUMPDONEs to arrive */
>  #define NUT_NET_ANSWER_MAX SMALLBUF
>  
>  /* prototypes from upsd.c */
> 



More information about the Nut-upsdev mailing list