Revision 7ba9e055

View differences:

examples/udpbwtest.py
35 35
def readline( host, buf ):
36 36
    "Read a line from a host, buffering with buffer."
37 37
    buf += host.read( 1024 )
38
    if '\n' not in buffer:
39
        return None, buffer
38
    if '\n' not in buf:
39
        return None, buf
40 40
    pos = buf.find( '\n' )
41 41
    line = buf[ 0 : pos ]
42 42
    rest = buf[ pos + 1: ]
......
130 130
    printTotalHeader()
131 131
    times = sorted( results.keys() )
132 132
    for t in times:
133
        printTotal( t - t[ 0 ] , results[ t ] )
133
        printTotal( t - times[ 0 ] , results[ t ] )
134 134
    print
135 135

  
136 136
# pylint: enable-msg=E1101

Also available in: Unified diff