Commit f9f8ab2f authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Outputting correct residual loss.

parent fc41f3eb
......@@ -66,7 +66,7 @@ class TestResults(object):
def __str__(self):
delayValues = self.delays[~np.isnan(self.delays)]
plr = 1 - (self.packetsReceived / self.packetsSent)
loss = "Residual Loss: %f%% (received %d of %d)" % (plr, self.packetsReceived, self.packetsSent)
loss = "Residual Loss: %f%% (received %d of %d)" % (plr * 100, self.packetsReceived, self.packetsSent)
duplicates = "Duplicates: %d" % (self.duplicates)
delayMean = np.mean(delayValues) * 1000
delayStd = np.std(delayValues) * 1000
......@@ -86,7 +86,7 @@ class TestSetup(object):
self.duplicate = duplicate
self.reorder = reorder
self.reorder_correlation = reorder_correlation
self.processing_delay = 0.005 # in ms
self.processing_delay = 0.01 # in ms
def netem_config(self):
# http://www.linuxfoundation.org/collaborate/workgroups/networking/netem
......
Supports Markdown
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