cli: show live sectors in the deadlines command by default
This commit is contained in:
parent
65ba7bd37d
commit
8c1d1bfd4a
@ -199,10 +199,9 @@ var provingDeadlinesCmd = &cli.Command{
|
||||
Usage: "View the current proving period deadlines information",
|
||||
Flags: []cli.Flag{
|
||||
&cli.BoolFlag{
|
||||
Name: "live",
|
||||
Usage: "View live deadlines information",
|
||||
Value: false,
|
||||
Aliases: []string{"l"},
|
||||
Name: "all",
|
||||
Usage: "Count all sectors (only live sectors are counted by default)",
|
||||
Aliases: []string{"a"},
|
||||
},
|
||||
},
|
||||
Action: func(cctx *cli.Context) error {
|
||||
@ -250,7 +249,7 @@ var provingDeadlinesCmd = &cli.Command{
|
||||
var partitionCount int
|
||||
|
||||
for _, partition := range partitions {
|
||||
if cctx.Bool("live") {
|
||||
if !cctx.Bool("all") {
|
||||
sc, err := partition.LiveSectors.Count()
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user