Revision 6a69c3c7 mininet/net.py

View differences:

mininet/net.py
768 768
                             server.IP() + ' ' + bwArgs )
769 769
        debug( 'Client output: %s\n' % cliout )
770 770
        servout = ''
771
        # We need the second *b/sec from the iperf server output
772
        while len( re.findall( '/sec', servout ) ) < 2:
771
        # We want the last *b/sec from the iperf server output
772
        # for TCP, there are two fo them because of waitListening
773
        count = 2 if l4Type == 'TCP' else 1
774
        while len( re.findall( '/sec', servout ) ) < count:
773 775
            servout += server.monitor( timeoutms=5000 )
774 776
        server.sendInt()
775 777
        server.waitOutput()

Also available in: Unified diff