rsc / grind

Grind polishes Go programs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stuck in a loop.

dajohi opened this issue · comments

$ 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

Should be fixed by most recent push; go get -u rsc.io/grind