[syslog-ng] Profiling syslog-ng

Balazs Scheidler bazsi at balabit.hu
Tue Mar 14 00:14:30 CET 2006


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



More information about the syslog-ng mailing list