On Sat, 29 Sep 2001, Stas Bekman wrote:
[...]
> looks like linux kernel thing?
Well, FreeBSD.
[...]
> this patch should shut down the warning, but I don't think this is a
> good idea at all. Try grepping your kernel includes dir and see what
> constant for time calibration you come up with.
Right, I'm afraid that's a bit too easy for the general case.
$ sysctl -a | grep -i tick
kern.clockrate: { hz = 100, tick = 10000, tickadj = 5, profhz = 1024, stathz = 128 }
(and elsewhere)
$ sysctl -a |grep -i tick
kern.clockrate: { hz = 1000, tick = 1000, tickadj = 1, profhz = 1024, stathz = 128 }
I can't figure out what the FreeBSD way to get HZ is. (But I ran
out of time too).
Hacking HZ into modperl_time.h made it compile at least. (But it
still doesn't run, more in next mail).
- ask
ps. pooking around (for other platforms too) I am hinted that HZ is
not all that portable. Hmpfr.
--
ask bjoern hansen, http://ask.netcetera.dk/ !try; do();
more than a billion impressions per week, http://valueclick.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]