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

Outputting milliseconds for delay.

parent 36cf9174
Pipeline #64 failed with stage
......@@ -68,7 +68,11 @@ class TestResults(object):
plr = 1 - (self.packetsReceived / self.packetsSent)
loss = "Residual Loss: %f%% (received %d of %d)" % (plr, self.packetsReceived, self.packetsSent)
duplicates = "Duplicates: %d" % (self.duplicates)
delays = "Delay Profile [s]: %f+-%f [%f - %f]" % (np.mean(delayValues), np.std(delayValues), np.min(delayValues), np.max(delayValues))
delayMean = np.mean(delayValues) * 1000
delayStd = np.std(delayValues) * 1000
delayMin = np.min(delayValues) * 1000
delayMax = np.max(delayValues) * 1000
delays = "Delay Profile [ms]: %f+-%f [%f - %f]" % (delayMean, delayStd, delayMin, delayMax)
return "%s\n%s\n%s" % (loss, duplicates, delays)
class TestSetup(object):
......
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