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",
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user