Fixed errors due to renaming buffer to buf.

This commit is contained in:
Bob Lantz
2010-03-08 15:36:09 -08:00
parent 80be564274
commit 7ba9e05542
+3 -3
View File
@@ -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