-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1006: Fix apparent performance calculation r=KtorZ a=Anviking # Issue Number Should probably be a bug. <!-- Put here a reference to the issue this PR relates to and which requirements it tackles --> # Overview <!-- Detail in a few bullet points the work accomplished in this PR --> - [x] I fixed the way we calculate `S (number of slots in the epoch)`. # Comments ## Comparison Setup: ```bash jormungandr --genesis-block-hash 6a40cf890d84981353457fcab6c892af57ee3c3286b33b530cd46b1af5b0e3a7 \ --rest-listen 127.0.0.1:8080 \ --storage /Users/Johannes/.local/share/cardano-wallet/jormungandr/testnet/chain \ --config ../testnet.yml cardano-wallet-jormungandr serve --genesis-block-hash 6a40cf890d84981353457fcab6c892af57ee3c3286b33b530cd46b1af5b0e3a7 --node-port 8080 ``` ### Previously (uncapped) Using the first commit to show the uncapped apparent performances. ```bash cardano-wallet-jormungandr stake-pool list | jq '.[] | "\(.metrics.controlled_stake.quantity),\(.metrics.produced_blocks.quantity) \(.apparent_performance)"' | tr -d '"' Ok. 10000000000000,2 2.2908997271066665 10000000000000,2 2.2908997271066665 10000000000000,1 1.1454498635533332 10000000000000,1 1.1454498635533332 799999987900,0 0 10000000000000,0 0 8039991840700,0 0 9886999984600,0 0 ``` ### Now (uncapped) ```bash cardano-wallet-jormungandr stake-pool list | jq '.[] | "\(.metrics.controlled_stake.quantity),\(.metrics.produced_blocks.quantity) \(.apparent_performance)"' | tr -d '"' Ok. 10000000000000,2 0.19636283375199998 10000000000000,2 0.19636283375199998 10000000000000,1 0.09818141687599999 10000000000000,1 0.09818141687599999 799999987900,0 0 10000000000000,0 0 8039991840700,0 0 9886999984600,0 0 ``` <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: Johannes Lund <johannes.lund@iohk.io> Co-authored-by: KtorZ <matthias.benkort@gmail.com>
- Loading branch information
Showing
2 changed files
with
104 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters