Fixed errors due to renaming buffer to buf.
This commit is contained in:
@@ -35,8 +35,8 @@ from mininet.util import quietRun
|
|||||||
def readline( host, buf ):
|
def readline( host, buf ):
|
||||||
"Read a line from a host, buffering with buffer."
|
"Read a line from a host, buffering with buffer."
|
||||||
buf += host.read( 1024 )
|
buf += host.read( 1024 )
|
||||||
if '\n' not in buffer:
|
if '\n' not in buf:
|
||||||
return None, buffer
|
return None, buf
|
||||||
pos = buf.find( '\n' )
|
pos = buf.find( '\n' )
|
||||||
line = buf[ 0 : pos ]
|
line = buf[ 0 : pos ]
|
||||||
rest = buf[ pos + 1: ]
|
rest = buf[ pos + 1: ]
|
||||||
@@ -130,7 +130,7 @@ def udpbwtest( net, seconds ):
|
|||||||
printTotalHeader()
|
printTotalHeader()
|
||||||
times = sorted( results.keys() )
|
times = sorted( results.keys() )
|
||||||
for t in times:
|
for t in times:
|
||||||
printTotal( t - t[ 0 ] , results[ t ] )
|
printTotal( t - times[ 0 ] , results[ t ] )
|
||||||
print
|
print
|
||||||
|
|
||||||
# pylint: enable-msg=E1101
|
# pylint: enable-msg=E1101
|
||||||
|
|||||||
Reference in New Issue
Block a user