
function getProcessCount(total) {
	if (total < 2) {
		return 1;
	}
	
	return 2;
}

function getThreadCount(total) {
	if (total < 2) {
		return 1;
	}
	return parseInt(total / 2 + 0.5);
}

function getProcessCount(total) {
	if (total < 2) {
		return 1;
	}
	if (total > 80) {
	    return parseInt(total / 30);
	}
	return 2;
}

function getThreadCount(total) {
	if (total < 2) {
		return 1;
	}
        if (total > 80) {
	    return parseInt(total / (parseInt(total / 30)));
        }
	return parseInt(total / 2 + 0.5);
}

Add the new process/thread policy
[NGRINDER-463] Add the new process/thread policy