fixing bug in local_hashrate calculation