mirror of
https://github.com/logos-storage/das-research.git
synced 2026-01-04 14:13:09 +00:00
output after each run
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
6d8fd94bf6
commit
faec845d38
@ -142,14 +142,16 @@ class Simulator:
|
||||
self.glob.checkRowsColumns(self.validators)
|
||||
self.validators[self.proposerID].broadcastBlock()
|
||||
|
||||
# arrived, expected = self.glob.checkStatus(self.validators)
|
||||
# missingSamples = expected - arrived
|
||||
# missingVector = []
|
||||
|
||||
simulator.initialize()
|
||||
self.validators[0].send()
|
||||
simulator.run()
|
||||
|
||||
arrived, expected = self.glob.checkStatus(self.validators)
|
||||
missingSamples = expected - arrived
|
||||
missingRate = missingSamples*100/expected
|
||||
self.logger.info("time %f, missing %d of %d (%0.02f %%)" % (simulator.time, missingSamples, expected, missingRate), extra=self.format)
|
||||
# missingVector = []
|
||||
|
||||
# steps = 0
|
||||
# while(True):
|
||||
# self.logger.debug("PHASE SEND %d" % steps, extra=self.format)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user