Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chain list --gas-stats display capacity #5676

Merged
merged 1 commit into from
Feb 26, 2021
Merged

chain list --gas-stats display capacity #5676

merged 1 commit into from
Feb 26, 2021

Conversation

Kubuxu
Copy link
Contributor

@Kubuxu Kubuxu commented Feb 24, 2021

Add tipset capacity display to chain list

Copy link
Contributor

@magik6k magik6k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't build

cli/chain.go Outdated
@@ -642,7 +642,10 @@ var chainListCmd = &cli.Command{
gasUsed += r.GasUsed
}

fmt.Printf("\ttipset: \t%d msgs, %d / %d (%0.2f%%)\n", len(msgs), gasUsed, limitSum, 100*float64(gasUsed)/float64(limitSum))
gasEfficiency := 100*float64(gasUsed)/float64(limitSum)
gasCapacity := 100*float64(limitSum)/float64(build.BlockGasLimit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
gasCapacity := 100*float64(limitSum)/float64(build.BlockGasLimit
gasCapacity := 100*float64(limitSum)/float64(build.BlockGasLimit)

Add tipset capacity display to `chain list`

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
@Kubuxu Kubuxu requested a review from magik6k February 26, 2021 13:07
@magik6k magik6k changed the base branch from master to next February 26, 2021 18:35
@magik6k magik6k merged commit fe69b56 into next Feb 26, 2021
@magik6k magik6k deleted the feat/list-gas-stats branch February 26, 2021 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants