From df17f709a4ac734470543c9fa51d58f51a03b4cc Mon Sep 17 00:00:00 2001 From: zenground0 Date: Fri, 21 Jul 2023 13:07:25 -0600 Subject: [PATCH] Record faulty status of sectors --- cmd/lotus-shed/cron-count.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cmd/lotus-shed/cron-count.go b/cmd/lotus-shed/cron-count.go index b4370a60f..4f0ecf9b7 100644 --- a/cmd/lotus-shed/cron-count.go +++ b/cmd/lotus-shed/cron-count.go @@ -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,