Stuck in a loop.
dajohi opened this issue · comments
David Hill commented
$ grind github.com/btcsuite/btcd
gets stuck in a loop swapping var declarations:
EDIT: cpuminer.go
@@ -73,8 +73,8 @@ func (m *CPUMiner) speedMonitor() {
defer ticker.Stop()
out:
- var hashesPerSec float64
var totalHashes uint64
+ var hashesPerSec float64
for {
select {
// Periodic updates from the workers with how many hashes they
36
EDIT: cpuminer.go
@@ -73,8 +73,8 @@ func (m *CPUMiner) speedMonitor() {
defer ticker.Stop()
out:
- var totalHashes uint64
var hashesPerSec float64
+ var totalHashes uint64
for {
select {
// Periodic updates from the workers with how many hashes they
Russ Cox commented
Should be fixed by most recent push; go get -u rsc.io/grind