Article View: comp.protocols.time.ntp
Article #884Once more .. dosynctodr=0, Sun clock drifts
From: Nick Sayer
Date: Fri, 24 May 1991 05:14
Date: Fri, 24 May 1991 05:14
23 lines
1234 bytes
1234 bytes
xntpd is unhappy with dosynctodr on. That's fine, I turned dosynctodr
off. Now the problem is that the Sun battery clock drifts from
real time and is never corrected. Is there a way to set the
real time clock from the soft clock? Is it as simple as:
#include <time.h>
main()
{
struct timeval tv;
nice(-20);
gettimeofday(&tv);
settimeofday(&tv);
}
Is there a problem running this program on a regular basis (say,
hourly)? How 'bout adding it to the xntpd code that updates the driftfile?
--
Nick Sayer | Think of me as a recombinant | RIP: Mel Blanc
mrapple@quack.sac.ca.us | Simpson: Homer's looks, Lisa's | 1908-1989
N6QQQ | brains, Bart's manners, and | May he never
209-952-5347 (Telebit) | Maggie's appetite for TV. --Me | be silenced.
Technical Details
Message-ID:
<kUTwGne@quack.sac.ca.us>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!ucdavis!quack!mrappleShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!ucdavis!quack!mrapple From: mrapple@quack.sac.ca.us (Nick Sayer) Newsgroups: comp.protocols.time.ntp Subject: Once more .. dosynctodr=0, Sun clock drifts Message-ID: <kUTwGne@quack.sac.ca.us> Date: 24 May 91 05:14:26 GMT Organization: The Duck Pond, Stockton, CA Lines: 23