new Max step option

  • Follow


hi ntp devs,
i already talked about that topic with harlan on #ntp channel and described 
why i'm needing this new option.
But first my Problem:
i need a mechanism to adjust a offset bigger than 1s without steps bigger than 
ca 0.2 (could be variable ... like a tinker option ) secs. i already inserted 
some simple lines of code at the head of local_clock function in 
ntp_loopfilter.c.

if (fabs(fp_offset) > PHX_MAX_STEP ){
                msyslog(LOG_NOTICE, "abs(fp_offset)[%.2f] > PHX_MAX_STEP",
                    fp_offset);
                if ( fp_offset < 0 ){
                        fp_offset = -PHX_MAX_STEP;
                }
                else{
                        fp_offset = PHX_MAX_STEP;
                }
                msyslog(LOG_NOTICE, " so shrank to %.2d\n",
                    fp_offset);
        }

I'm not really familiar with code but i hope u r getting my idea.
is it thinkable to get such an option included into the cvs ntpd sometimes?
thanks
	martin
_______________________________________________
questions mailing list
questions@lists.ntp.isc.org
https://lists.ntp.isc.org/mailman/listinfo/questions

0
Reply lehmama (1) 7/11/2006 8:57:13 AM


0 Replies
119 Views

(page loaded in 0.052 seconds)

Similiar Articles:













7/29/2012 12:29:42 AM


Reply: