http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5762





------- Additional Comments From [EMAIL PROTECTED]  2008-01-03 13:26 -------
> where did you get the figure 1.77 from?  a guess?

>From 'Changes' file in the current version of Time::HiRes
(and I tested with 1.48, which is the only version I could find
older than 1.77).

> I'd prefer to use something like
>     Time::HiRes->can("clock_getres") && Time::HiRes->can("CLOCK_REALTIME")
> as the condition, to insulate against other versions, if so. (although
> for some reason that doesn't work, since CLOCK_REALTIME isn't a function,
> it seems. but you get the idea)

The CLOCK_REALTIME probably came together with a function clock_getres
(because this is a constant needed as an argument to that function),
so I think it would be safe to only test for can("clock_getres").
Worst case, we'd fall back to a 1 second resolution.

I'll prepare an alternative patch.

> (Unfortunately, 3-year-old modules tend to be reasonably common due to
> slow distribution packagers.)

Sigh. The original reporter is using a 9 year old version!




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to