[ntp:questions] Why is NTPD adjusting the system clock when in LOCAL(0) mode?

Terje Mathisen "terje.mathisen at tmsw.no" at ntp.org
Thu Jun 16 17:41:28 UTC 2011


Chris Albertson wrote:
> On Wed, Jun 15, 2011 at 8:21 AM, Charles Elliott<elliott.ch at verizon.net>  wrote:
>
>> Yet NTPD is constantly changing the curTimeAdjustment.  Here is the evidence
>> from my program:
>>
>> CTA: 156003
>>
>> CTA: 156004
>>
>> CTA: 156003
>
> The adjustment seems to be by 1 and it goes up and down.  I'd guess
> this is a round off from a floating value.

Almost correct: It is a us approximation to a ns value, so ntpd 
aggregates the offset between the current correction and the ideal value 
and adjusts to compensate.

Terje
-- 
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"




More information about the questions mailing list