hotfix: A bug in cpu cores calculation

http://ralph.allegrogroup.com/buildbot/builders/unittest-ralph-deshipu/builds/189