Fix total hashrate and hashrate chart#14
Open
pavlenex wants to merge 3 commits intostratum-mining:mainfrom
Open
Fix total hashrate and hashrate chart#14pavlenex wants to merge 3 commits intostratum-mining:mainfrom
pavlenex wants to merge 3 commits intostratum-mining:mainfrom
Conversation
pavlenex
commented
Feb 23, 2026
| </div> | ||
| </div> | ||
|
|
||
| <div className="flex items-center gap-2 w-full sm:w-auto justify-end"> |
Contributor
Author
There was a problem hiding this comment.
Refresh buttons aren't functional and since I believe we hot refresh data I removed them.
pavlenex
commented
Feb 23, 2026
Comment on lines
+96
to
+107
| // Total hashrate, with multiple fallback sources: | ||
| // - JD mode: sv2_clients summary → client channel nominal hashrates | ||
| // - Translator-only mode: sv1_clients summary → individual client sum → server reported total | ||
| // Use nullish coalescing so an explicit 0 hashrate is preserved. | ||
| const totalHashrate = isJdMode | ||
| ? (poolGlobal?.sv2_clients?.total_hashrate ?? clientChannelHashrate ?? 0) | ||
| : ( | ||
| poolGlobal?.sv1_clients?.total_hashrate | ||
| ?? (sv1Data ? sv1TotalHashrate : undefined) | ||
| ?? poolGlobal?.server?.total_hashrate | ||
| ?? 0 | ||
| ); |
Contributor
Author
There was a problem hiding this comment.
This one needs to be reviewed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Vibe-coded prototype attempt to fix

total hashrate counterand hashrate history chart. This is a proof of concept.Related #11 #12