Record faulty status of sectors
This commit is contained in:
parent
8c4e705df3
commit
df17f709a4
@ -54,6 +54,7 @@ type VestingDiff struct {
|
|||||||
type PartitionSummary struct {
|
type PartitionSummary struct {
|
||||||
Live int
|
Live int
|
||||||
Dead int
|
Dead int
|
||||||
|
Faulty int
|
||||||
Diff PartitionDiff
|
Diff PartitionDiff
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -184,6 +185,7 @@ var minerDeadlinePartitionMeasurementCmd = &cli.Command{
|
|||||||
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user