Amit Kulkarni wrote: > Hi, > > I wanted to know the value of tick, went to man.openbsd.org, and got > https://man.openbsd.org/tick > > While the answer provided on this page below is accurate, IMHO it is not > useful. I had to do a grep on "tick" for the kern.clockrate sysctl. Something > like the below would be better. > > Thanks > > diff --git man9/hz.9 man9/hz.9 > index a319266e518..ac5e8f60850 100644 > --- man9/hz.9 > +++ man9/hz.9 > @@ -79,11 +79,11 @@ may be used to skew this increment, but by no more > than ten times > .Va tickadj . > .Pp > -Those systems variables are available as a struct clockinfo from > -.Xr sysctl 2 . > +These system variables are available as kern.clockrate from > +.Xr sysctl 8 .
This is meant to be programmer documentation, so I think it makes sense to keep it referring to sysctl.2. However, it's a good point that you shouldn't have to grep for clockinfo. If we mention KERN_CLOCKRATE that makes searching faster and should allow users to figure out kern.clockrate. Index: hz.9 =================================================================== RCS file: /cvs/src/share/man/man9/hz.9,v retrieving revision 1.8 diff -u -p -r1.8 hz.9 --- hz.9 12 Jan 2018 04:36:45 -0000 1.8 +++ hz.9 6 Jan 2019 19:07:27 -0000 @@ -79,7 +79,9 @@ may be used to skew this increment, but than ten times .Va tickadj . .Pp -Those systems variables are available as a struct clockinfo from +These system variables are available by reading +.Va KERN_CLOCKRATE +from .Xr sysctl 2 . .Sh SEE ALSO .Xr adjtime 2 ,
