From 9fans@cse.psu.edu Sun Oct 27 20:23:59 EST 1996
Article: 1984 of comp.os.plan9
Xref: info.ecf comp.os.plan9:1984
Newsgroups: comp.os.plan9
Path: info.ecf!utnut!nott!crc-news.doc.ca!news.drenet.dnd.ca!news.acsu.buffalo.edu!news.uoregon.edu!newsfeed.orst.edu!newshub.tc.umn.edu!mr.net!www.nntp.primenet.com!nntp.primenet.com!howland.erols.net!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!uknet!yama.mcc.ac.uk!news.salford.ac.uk!aber!bath.ac.uk!ccsis
From: presotto@plan9.BEll-labs.COM
Subject: re: Keeping the fileserver's clock straight
Approved: plan9mod@bath.ac.uk
Reply-To: 9fans@cse.psu.edu
Sender: ccsis@bath.ac.uk (Icarus Sparry)
Organization: Plan 9 mailing list
Message-ID: <199610171405.KAA28117@cse.psu.edu>
Date: Thu, 17 Oct 1996 14:08:59 GMT
Lines: 40

fs used to call a clock server via datakit once every
few (I think 3) hours.  Datakit isn't exactly the most
ubiquitous network though.  What I've done lately with ours
is to just have it check the time of day clock.  Works
well on our current boxes since the tod clocks don't seem
to drift much.  Here's the changes, such as they are.  I'm
not doing a boddle since there are some other changes in
there that I don't know the origin of:

in wormcopy() of main.c

% diff main.c /n/juke/plan_9/sys/src/fs/port
305c305
< 	long nddate, ntoytime, t, dt;
---
> 	long nddate, t, dt;
316,317d315
< 	ntoytime = time() + HOUR(1);
< 
330,342d327
< 
< 	if(t > ntoytime) {
< 		dt = time() - rtctime();
< 		if(dt < 0)
< 			dt = -dt;
< 		if(dt > 10)
< 			print("rtc time more than 10 secounds out\n");
< 		else
< 		if(dt > 1)
< 			settime(rtctime());
< 		ntoytime = time() + HOUR(1);
< 		goto loop;
< 	}

in cmd_date() of con.c, set rtc in addition to normal time.

% diff con.c /n/juke/plan_9/sys/src/fs/port
416,417d415
< 	setrtc(ct);
< 


From 9fans@cse.psu.edu Sun Oct 27 20:24:14 EST 1996
Article: 1989 of comp.os.plan9
Xref: info.ecf comp.os.plan9:1989
Newsgroups: comp.os.plan9
Path: info.ecf!utnut!cs.utexas.edu!howland.erols.net!news.mathworks.com!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!uknet!strath-cs!dcl-cs!bath.ac.uk!ccsis
From: boyd@france3.FR (Boyd Roberts)
Subject: re: Keeping the fileserver's clock straight
Approved: plan9mod@bath.ac.uk
Reply-To: 9fans@cse.psu.edu
Sender: ccsis@bath.ac.uk (Icarus Sparry)
Organization: Plan 9 mailing list
Message-ID: <199610171649.14933.9.baguv@france3.fr>
References: <199610171405.KAA28117@cse.psu.edu>
Date: Thu, 17 Oct 1996 14:55:43 GMT
Lines: 3

bit of a typo in the spelling of seconds:

< 			print("rtc time more than 10 secounds out\n");


