ensure that cpuavg calculation is a float