next up previous contents index
Next: FTP-Transfers Up: UDP-Transfers Previous: udptest.sh

udpfilter

#! /usr/bin/perl

$size = $ARGV[0];

while(<STDIN>) {
        if(/real\s+(\d+)m([0-9.]+)s/) {
                $minutes = $1;
                $secs = $2;

                $time = ($minutes * 60) + $secs;

                printf "%d %f\n", $size, $size / $time;
        }
}



Andreas Godzina
1999-04-06