Small fix

This commit is contained in:
Leonardo Bautista-Gomez 2023-03-30 16:10:10 +02:00
parent ae36844e7f
commit c4ad3cf80e
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ class Simulator:
if missingSamples == oldMissingSamples:
if len(missingVector) > self.config.steps4StopCondition:
if missingSamples == missingVector[len(missingVector)-1-self.config.steps4StopCondition]:
if missingSamples == missingVector[-self.config.steps4StopCondition]:
self.logger.debug("The block cannot be recovered, failure rate %d!" % self.shape.failureRate, extra=self.format)
break
missingVector.append(missingSamples)