On Thu, Feb 11, 2010 at 01:48:07AM +0100, Peter Palfrader wrote: > | wea...@field:~$ cat /proc/uptime ; grep 'cpu ' /proc/stat ; cat /proc/uptime > | 188847.15 673325.21 > | cpu 119994 4473784 3539322 2746621 > | 188847.16 673325.21 > | wea...@field:~$ getconf CLK_TCK > | 60 I calculate 57 which is close enough to 60, though not close enough for procps: case 58 ... 61 : Hertz = 60; break;
However you were getting 45! On linux, we just use ELF notes and this problem goes away. If there is something equivalent in freeBSD then I could use that as well. alternatively there is sysconf(_SC_CLK_TCK) which gives a value. > [Is this in any way related to ps showing completely broken timestamps > in the START column? If not and there isn't a bug report about that > that ought to get filed too.] That bug was reported in procps but was moved to kfreebsd-7 package http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=344546 It boils down to that the freebsd procfs is incomplete. - Craig -- Craig Small GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5 http://www.enc.com.au/ csmall at : enc.com.au http://www.debian.org/ Debian GNU/Linux, software should be Free -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

