mirror of
https://github.com/codex-storage/das-research.git
synced 2025-02-23 08:18:14 +00:00
Add Tx and Rx stats to resultsi. Rebase to traffic progress.
This commit is contained in:
parent
9800161ac9
commit
41e8399159
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user