Fix: linux executed command not producing unique list of cores
Fix: linux executed command not producing unique list of cores

uniq removes sequentially duplicated lines, therefore input needs sorting first to achieve a unique count. 
Optimum vcpu number in vm should not include hyperthread cpu therefore calculation should be physical cpus * cores on each cpu 
e.g. I have 2 x 8 core CPUs (hyperthreaded too) old code used to return 32, new calc returns 16.
pivotal-cf/micropcf,pivotal-cf/micropcf