diff --git a/cmd/geth/admin.go b/cmd/geth/admin.go index f2887c6db326dca60a19fb23a07d4d7ce600e847..1515cd6ac93c059ee129fe698cb75274b0cd4627 100644 --- a/cmd/geth/admin.go +++ b/cmd/geth/admin.go @@ -37,6 +37,11 @@ func (js *jsre) adminBindings() { admin.Set("dumpBlock", js.dumpBlock) admin.Set("verbosity", js.verbosity) admin.Set("backtrace", js.backtrace) + admin.Set("hashrate", js.hashrate) +} + +func (js *jsre) hashrate(otto.FunctionCall) otto.Value { + return js.re.ToVal(js.ethereum.Miner().HashRate()) } func (js *jsre) backtrace(call otto.FunctionCall) otto.Value { diff --git a/miner/worker.go b/miner/worker.go index 8541100d1af027dbb25961cb647b0f3297d6f73f..17afa25de42504f13da073c64453a8048e110537 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -145,7 +145,7 @@ out: } break out case <-timer.C: - if glog.V(logger.Info) { + if glog.V(logger.Debug) { glog.Infoln("Hash rate:", self.HashRate(), "Khash") }