13 Mar
2006
13 Mar
'06
11:14 p.m.
On Mon, 2006-03-13 at 14:33 -0500, John Morrissey wrote:
I pulled the time_sleep() changes from a recent snapshot (thanks!) and am backporting them to 1.6.x[1]. I noticed this hunk:
+ if (backend->configuration->time_sleep > 0) + { + struct timespec ts; + + ts.tv_sec = 0; + ts.tv_nsec = backend->configuration->time_sleep * 1000; + + nanosleep(&ts, NULL);
The docs say the time_sleep() value is in milliseconds, but 1 msec == 1 000 000 nsec - shouldn't this multiplication factor have an extra three zeros? :-)
Thanks for spotting this, I've just committed a fix. -- Bazsi