File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import (
14
14
"github.com/ethereum/go-ethereum/utils"
15
15
"github.com/go-qml/qml"
16
16
"math/big"
17
+ "strconv"
17
18
"strings"
18
19
"time"
19
20
)
@@ -369,11 +370,14 @@ func (gui *Gui) update() {
369
370
}
370
371
371
372
case <- generalUpdateTicker .C :
373
+ statusText := "#" + gui .eth .BlockChain ().CurrentBlock .Number .String ()
372
374
if gui .miner != nil {
373
375
pow := gui .miner .GetPow ()
374
- fmt .Println ("HashRate from miner" , pow .GetHashrate ())
376
+ if pow .GetHashrate () != 0 {
377
+ statusText = "Mining @ " + strconv .FormatInt (pow .GetHashrate (), 10 ) + "Khash - " + statusText
378
+ }
375
379
}
376
- lastBlockLabel .Set ("text" , "#" + gui . eth . BlockChain (). CurrentBlock . Number . String () )
380
+ lastBlockLabel .Set ("text" , statusText )
377
381
}
378
382
}
379
383
}
You can’t perform that action at this time.
0 commit comments