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