On Fri, May 12, 2006 at 08:46:54PM +0200, Mark wrote:
 
> thanks a lot for your code! I 'm testing it right now.
> I need to parse standard output because I need the ATM option and its 
> output is only the standard one.

Ah, ATM SVCs. We used to run LAN emulation on ATM years ago...

> Success rate is 100 percent (10/10), round-trip min/avg/max = 84/86/92 ms

Be sure to fix the average calculations in the suggested code. I think
the right thing would be

for my $i (1..$number) {
        if ($i == 1) {
                push @times, $min;
        } elsif ($i == $number) {
                push @times, $max;
        } else
                push @times, ($number * $avg - $min - $max) / ($number - 2);
        }
}

Cheers,
-- 
Niko

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/smokeping-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

Reply via email to