Date: Wed, 05 Mar 2003 17:16:20 -0500 From: Jan Knepper <jan@digitaldaemon.com> To: Jan Knepper <jan@digitaldaemon.com> Cc: Hackers <freebsd-hackers@freebsd.org> Subject: Re: 'ticks' in kernel. Message-ID: <3E667734.2000600@digitaldaemon.com> In-Reply-To: <3E653CB7.8080306@digitaldaemon.com> References: <3E64301E.5050901@digitaldaemon.com> <20030304.080123.34121962.imp@bsdimp.com> <3E64E941.3030205@digitaldaemon.com> <20030304.104403.34570707.imp@bsdimp.com> <3E64F7B2.9040008@digitaldaemon.com> <20030304210747.GA29907@lanczos.maths.tcd.ie> <3E653CB7.8080306@digitaldaemon.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Well, I guess since I have not heard any brilliant solutions. Could/should I add a query for 'ticks' to sysctl? Thanks! Jan Jan Knepper wrote: > David Malone wrote: > >> On Tue, Mar 04, 2003 at 02:00:02PM -0500, Jan Knepper wrote: >> >> >>> How would they return me the 'value' of 'ticks'? >>> >>> The problem is... I have a value's somewhere that has been assigned >>> from 'ticks', like: >>> ptr -> value = ticks; >>> >> >> >> Maybe it would help to explain what you are doing at a higher level? >> It seems odd that you need to do anything like this at all... >> >> >> > Well, what I started doing is patching 'netstat' with the idea that I > can display: > - Time a TCP connection was setup. > - Age of a TCP connection. > the 'tcpcb' seems to have a member 't_starttime' which could be used > for this. However, t_starttime is being initialized from 'ticks'. So > to get an result that would make sense to a user I would have to do > something like: > > const time_t boottime; > time_t tcptime; > > tcptime = boottime + ( ticks - tcpcb -> t_starttime ) / FACTOR; > > The missing part... 'ticks'... > > Thanks! > Jan > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E667734.2000600>