From 41e83991591eab9d9d8ea2e787c0064628c10cd0 Mon Sep 17 00:00:00 2001 From: Leonardo Bautista-Gomez Date: Mon, 27 Mar 2023 21:24:25 +0200 Subject: [PATCH] Add Tx and Rx stats to resultsi. Rebase to traffic progress. --- DAS/results.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/DAS/results.py b/DAS/results.py index 48512cd..469810c 100644 --- a/DAS/results.py +++ b/DAS/results.py @@ -16,10 +16,16 @@ class Result: self.missingVector = [] self.metrics = {} - def populate(self, shape, config, missingVector): + def populate(self, shape, config, missingVector, bandwidthVector): """It populates part of the result data inside a vector.""" self.shape = shape self.missingVector = missingVector + self.proTx = bandwidthVector[0] + self.proRx = bandwidthVector[1] + self.aveTx = bandwidthVector[2] + self.maxTx = bandwidthVector[3] + self.aveRx = bandwidthVector[4] + self.maxRx = bandwidthVector[5] missingSamples = missingVector[-1] if missingSamples == 0: self.blockAvailable = 1