Record faulty status of sectors

This commit is contained in:
zenground0 2023-07-21 13:07:25 -06:00
parent 8c4e705df3
commit df17f709a4

View File

@ -52,9 +52,10 @@ type VestingDiff struct {
} }
type PartitionSummary struct { type PartitionSummary struct {
Live int Live int
Dead int Dead int
Diff PartitionDiff Faulty int
Diff PartitionDiff
} }
type PartitionDiff struct { type PartitionDiff struct {
@ -182,8 +183,9 @@ var minerDeadlinePartitionMeasurementCmd = &cli.Command{
return err return err
} }
pSummaries = append(pSummaries, PartitionSummary{ pSummaries = append(pSummaries, PartitionSummary{
Live: cntBefore.live, Live: cntBefore.live,
Dead: cntBefore.dead, Dead: cntBefore.dead,
Faulty: cntBefore.faulty,
Diff: PartitionDiff{ Diff: PartitionDiff{
Faulted: cntAfter.faulty - cntBefore.faulty, Faulted: cntAfter.faulty - cntBefore.faulty,
Recovered: cntBefore.recovering - cntAfter.recovering, Recovered: cntBefore.recovering - cntAfter.recovering,