cpu percent calc fix