[smokeping-users] Re: missing max for DS uptime? again
Niko Tyni
ntyni+smokeping-users at mappi.helsinki.fi
Fri Mar 17 13:25:44 MET 2006
On Fri, Mar 17, 2006 at 01:10:12PM +0100, Tobias Oetiker wrote:
> there was a bugreport from a free/openbsd person (I think) that this
> check did not work on 5.8.7. but my patch was obviously sub optimal
>
> how about using?
>
> $]
>
> this should be prooven technology ... if combined with sprintf then
> the numeric accuracy problem for comparisons should be ok ...
Yes, I guess this is the way to go. The v-strings are a bit controversial.
At some point they were going to be deprecated, but I'm not sure what
the current consensus is. Let's get rid of them anyway.
I guess something like
if abs($] - 5.008000) < .0000005)
would also work...
Cheers,
--
Niko
--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/smokeping-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the smokeping-users
mailing list