Clockspeed failing
rich <[email protected]> Sat, 17 Apr 2004 15:11:54 +0100
| Newsgroups | gmane.comp.lib.libtai |
|---|---|
| Message-ID | <[email protected]> |
Firstly, sorry if this is a recurring question, but I couldn't find any
archive of this mailing list anywhere and can't find the answer elsewhere.
I'm trying to run clockspeed (0.62) on OpenBSD 3.4 on an Intel PII
The problem is that clockspeed is exiting prematurely. I've traced it to the
following in clockspeed.c (lines 159 - 161) :
if (select(1,&rfds,(fd_set *) 0,(fd_set *) 0,&tvselect) == 1) {
r = read(0,buf,sizeof buf);
if (r <= 0) _exit(1); /* not possible */
The main loop executes once but exits on the second iteration (at line 161).
The value of 'r' on the first iteration = sizeof(buf) (ie - 16). I don't know
if it is relevant but on the first iteration, 'deltareal' is calculated as
zero and 'deriv' is not modified at all and remains zero. There is a
/usr/local/clockspeed/adjust file and passing this through clockview seems to
indicate that it is valid (there is only a difference of about 300ms
reported).
Any advice on what I can do about this would be greatfully received as I don't
know what it's trying to do.
regards,
Rich.