Skip to content

Commit

Permalink
Rename TreeSize to ActiveTreeSize
Browse files Browse the repository at this point in the history
Signed-off-by: Priya Wadhwa <priya@chainguard.dev>
  • Loading branch information
priyawadhwa committed Jun 6, 2022
1 parent 4044029 commit 69f9690
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/rekor-cli/app/log_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import (
)

type logInfoCmdOutput struct {
TreeSize int64
ActiveTreeSize int64
TotalTreeSize int64
RootHash string
TimestampNanos uint64
Expand All @@ -60,7 +60,7 @@ Total Tree Size: %v
Root Hash: %s
Timestamp: %s
TreeID: %s
`, l.TreeSize, l.TotalTreeSize, l.RootHash, ts, l.TreeID)
`, l.ActiveTreeSize, l.TotalTreeSize, l.RootHash, ts, l.TreeID)
}

// logInfoCmd represents the current information about the transparency log
Expand Down Expand Up @@ -102,7 +102,7 @@ var logInfoCmd = &cobra.Command{
}

cmdOutput := &logInfoCmdOutput{
TreeSize: swag.Int64Value(logInfo.TreeSize),
ActiveTreeSize: swag.Int64Value(logInfo.TreeSize),
TotalTreeSize: totalTreeSize(logInfo, logInfo.InactiveShards),
RootHash: swag.StringValue(logInfo.RootHash),
TimestampNanos: sth.GetTimestamp(),
Expand Down

0 comments on commit 69f9690

Please sign in to comment.