cli: show live sectors in the deadlines command by default

This commit is contained in:
Łukasz Magiera 2022-08-02 10:15:12 +02:00
parent 65ba7bd37d
commit 8c1d1bfd4a

View File

@ -199,10 +199,9 @@ var provingDeadlinesCmd = &cli.Command{
Usage: "View the current proving period deadlines information", Usage: "View the current proving period deadlines information",
Flags: []cli.Flag{ Flags: []cli.Flag{
&cli.BoolFlag{ &cli.BoolFlag{
Name: "live", Name: "all",
Usage: "View live deadlines information", Usage: "Count all sectors (only live sectors are counted by default)",
Value: false, Aliases: []string{"a"},
Aliases: []string{"l"},
}, },
}, },
Action: func(cctx *cli.Context) error { Action: func(cctx *cli.Context) error {
@ -250,7 +249,7 @@ var provingDeadlinesCmd = &cli.Command{
var partitionCount int var partitionCount int
for _, partition := range partitions { for _, partition := range partitions {
if cctx.Bool("live") { if !cctx.Bool("all") {
sc, err := partition.LiveSectors.Count() sc, err := partition.LiveSectors.Count()
if err != nil { if err != nil {
return err return err