Fix hashrate calculation