Updated api.c to return the hashrate with 3 decimal places