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

feature: Add expected hashrate to API #508

Open
b-rowan opened this issue Nov 22, 2024 · 1 comment
Open

feature: Add expected hashrate to API #508

b-rowan opened this issue Nov 22, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@b-rowan
Copy link
Contributor

b-rowan commented Nov 22, 2024

It would be nice to have the expected hashrate shown in the API directly to make it a bit easier for external tools to parse it. AFAIU there is some calculation being done involving cores, frequency, etc, to find this value.

I am happy to PR this if someone can start me in the right direction as to where to source this.

@jns-codeworks
Copy link

I think it is this line:

this.expectedHashRate$ = this.info$.pipe(map(info => { return Math.floor(info.frequency * ((info.smallCoreCount * info.asicCount) / 1000)) }))

source

@WantClue WantClue added enhancement New feature or request good first issue Good for newcomers labels Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants