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 ):
"Read a line from a host, buffering with buffer."
buf += host.read( 1024 )
if '\n' not in buffer:
return None, buffer
if '\n' not in buf:
return None, buf
pos = buf.find( '\n' )
line = buf[ 0 : pos ]
rest = buf[ pos + 1: ]
@@ -130,7 +130,7 @@ def udpbwtest( net, seconds ):
printTotalHeader()
times = sorted( results.keys() )
for t in times:
printTotal( t - t[ 0 ] , results[ t ] )
printTotal( t - times[ 0 ] , results[ t ] )
print
# pylint: enable-msg=E1101