Date: Wed, 26 Feb 2003 10:46:11 -0800 From: "Sam Leffler" <sam@errno.com> To: <phk@phk.freebsd.dk> Cc: <src-committers@FreeBSD.org>, <cvs-src@FreeBSD.org>, <cvs-all@FreeBSD.org> Subject: Re: cvs commit: src/sys/kern kern_time.c Message-ID: <28e301c2ddc7$6a92ef40$52557f42@errno.com> References: <26723.1046282534@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
> In message <200302261716.h1QHGcpH094340@repoman.freebsd.org>, Sam Leffler write > s: > >sam 2003/02/26 09:16:38 PST > > > > Modified files: > > sys/kern kern_time.c > > Log: > > o fix ppsratecheck to interpret a maxpps of zero as "ignore everything" > > o add a comment explaining the significance of using 0 or -1 (actually > > any negative value) for maxpps > > Would it be possible to make some magic value mean "once" ? I'm sure it is possible, but I've boloxed this stuff enough right now so I'd prefer someone else do it. As it is ppsratecheck is not especially useful in the way I intended because it fixes the time interval at 1 second. The wi driver and probably other potential users would be better off with a mechanism that lets you rate limit over a longer interval (like 60 seconds). When I added this stuff I argued against a new API but now I'm thinking it might be better to just replace this with something entirely different. Sam To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?28e301c2ddc7$6a92ef40$52557f42>