Keep detailed correction repair history in debug runs
This commit is contained in:
@@ -124,10 +124,10 @@ func Build(input BuildInput) reporting.Snapshot {
|
||||
}
|
||||
snapshot.WorkUnits = append(snapshot.WorkUnits, row)
|
||||
for _, repair := range unit.Repairs {
|
||||
if len(repair.Attempts) == 0 {
|
||||
if repair.AttemptCount == 0 {
|
||||
continue
|
||||
}
|
||||
snapshot.RepairOutcomes = append(snapshot.RepairOutcomes, reporting.RepairOutcome{StageIndex: unit.ModuleIndex, ChunkIndex: unit.Section.Index, ProposalIndex: repair.ProposalIndex, Attempts: len(repair.Attempts), Outcome: repair.Outcome})
|
||||
snapshot.RepairOutcomes = append(snapshot.RepairOutcomes, reporting.RepairOutcome{StageIndex: unit.ModuleIndex, ChunkIndex: unit.Section.Index, ProposalIndex: repair.ProposalIndex, Attempts: repair.AttemptCount, Outcome: repair.Outcome})
|
||||
}
|
||||
}
|
||||
sort.SliceStable(snapshot.RepairOutcomes, func(i, j int) bool {
|
||||
|
||||
Reference in New Issue
Block a user