diff --git a/cmd/lotus-shed/bitfield.go b/cmd/lotus-shed/bitfield.go index 4a6b1dca3..44d79fcd6 100644 --- a/cmd/lotus-shed/bitfield.go +++ b/cmd/lotus-shed/bitfield.go @@ -172,6 +172,10 @@ var bitFieldStatCmd = &cli.Command{ } } + if _, err := rle.Count(); err != nil { // check overflows + fmt.Println("Error: ", err) + } + fmt.Printf("Decoded length: %d bits\n", ones+zeros) fmt.Printf("\tOnes: %d\n", ones) fmt.Printf("\tZeros: %d\n", zeros)