Fixed num_cores functionality
Fixed num_cores functionality


Former-commit-id: 104666d18a55c096f64127344e61810838da18b7 [formerly 40d93911e5fb5e7062dbdb68265eb8aedf18381c]
Former-commit-id: 051a7f0a103285b6ecdf4a379d74af7c07f1ca9e
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine