Fix avg_cpus calculation.

Change-Id: Icbb1be6606166c385ab09d4d05917271196944fe