divide only if total isn't 0 in cpugraph (fixes cpugraph freeze)