Skip to content

Commit

Permalink
Update MiningStats.qml
Browse files Browse the repository at this point in the history
  • Loading branch information
devhyper committed Jun 9, 2023
1 parent 9beb592 commit 2ec9351
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pages/MiningStats.qml
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,17 @@ Rectangle {
if (pool_statistics != null)
{
var statsData = [
{"key": "Your hashrate:", "value": statsMap["current_hashrate"] + " H/s"},

{"key": "Main chain height:", "value": statsMap["height"]},
{"key": "Side chain height:", "value": pool_statistics["sidechainHeight"]},
{"key": "PPLNS window:", "value": pool_statistics["pplnsWindowSize"] + " blocks"},
{"key": "Block reward share", "value": statsMap["block_reward_share_percent"]},
{"key": "Your shares:", "value": statsMap["shares_found"] + " blocks"},
{"key": "Block reward share:", "value": statsMap["block_reward_share_percent"] + "%"},

{"key": "Connections: ", "value": statsMap["connections"]},
{"key": "Connections: ", "value": statsMap["connections"] + " (" + statsMap["incoming_connections"] + " incoming)"},
{"key": "Peer list size: ", "value": statsMap["peer_list_size"]},
{"key": "Uptime: ", "value": statsMap["uptime"]}
{"key": "Uptime: ", "value": statsMap["uptime"] + "s"}
];

for (var element of statsData)
Expand Down

0 comments on commit 2ec9351

Please sign in to comment.