add iteration number for displaying status

parent 82424a67
......@@ -191,7 +191,8 @@ def bandwidthTest(bw=5, controllerip="localhost"):
sleep_time = 120
i = 10;
while ( i < sleep_time):
print "Sleeping for %d seconds for rate-limiters to grow" % i
print "[%d] Sleeping for %d seconds for rate-limiters to grow" \
%( sleep_time/i, i)
sleep(i)
sleep_time=sleep_time - i;
#for installing meter-mod
......
......@@ -182,12 +182,13 @@ def bandwidthTest(bw=5, controllerip="localhost"):
#wait for 2 minutes for the rate-limiter to grow
p = Popen("./bwTestTapFlow.sh", shell=True)
sleep_time = 120
sleep_time = 360
i = 10;
while ( i < sleep_time):
print s1.cmd('dpctl unix:/tmp/s1 meter-config')
#print s1.cmd('dpctl unix:/tmp/s1 stats-meter')
print "Sleeping for %d seconds for rate-limiters to grow" % i
print "[%d] Sleeping for %d seconds for rate-limiters to grow" \
%( sleep_time/i, i)
sleep(i)
sleep_time=sleep_time - i;
#for installing meter-mod
......
......@@ -162,7 +162,8 @@ def bandwidthTest(bw=5, controllerip="localhost"):
sleep_time = 120
i = 10;
while ( i < sleep_time):
print "Sleeping for %d seconds for rate-limiters to grow" % i
print "[%d] Sleeping for %d seconds for rate-limiters to grow" \
%( sleep_time/i, i)
sleep(i)
sleep_time=sleep_time - i;
......
......@@ -205,7 +205,8 @@ def bandwidthTest(bw=5, controllerip="localhost"):
while ( i < sleep_time):
print s1.cmd('dpctl unix:/tmp/s1 meter-config')
#print s1.cmd('dpctl unix:/tmp/s1 stats-meter')
print "Sleeping for %d seconds for rate-limiters to grow" % i
print "[%d] Sleeping for %d seconds for rate-limiters to grow" \
%( sleep_time/i, i)
sleep(i)
sleep_time=sleep_time - i;
#for installing meter-mod
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment