diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-01 06:09:49 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-01 06:09:49 +0800 |
commit | 65cad14f9b27db396d036f47814d4843d947ac43 (patch) | |
tree | 89395b2035f38d9dd851c0d50a064387469355eb /miner/miner.go | |
parent | fdf939a6f9b5360d76415c7118969d92af2774f9 (diff) | |
download | go-tangerine-65cad14f9b27db396d036f47814d4843d947ac43.tar go-tangerine-65cad14f9b27db396d036f47814d4843d947ac43.tar.gz go-tangerine-65cad14f9b27db396d036f47814d4843d947ac43.tar.bz2 go-tangerine-65cad14f9b27db396d036f47814d4843d947ac43.tar.lz go-tangerine-65cad14f9b27db396d036f47814d4843d947ac43.tar.xz go-tangerine-65cad14f9b27db396d036f47814d4843d947ac43.tar.zst go-tangerine-65cad14f9b27db396d036f47814d4843d947ac43.zip |
Report debug hash rate
Diffstat (limited to 'miner/miner.go')
-rw-r--r-- | miner/miner.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/miner/miner.go b/miner/miner.go index 0cc2361c8..6b416be8e 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -52,10 +52,5 @@ func (self *Miner) Stop() { } func (self *Miner) HashRate() int64 { - var tot int64 - for _, agent := range self.worker.agents { - tot += agent.Pow().GetHashrate() - } - - return tot + return self.worker.HashRate() } |