This should be `[(#{num_cpus} - 1), 1].max` where num_cpus is how you figure out the number of cpus on a machine.

Don't think Ruby has a built in way of detecting number of CPUs. There are a few gems out there that take care of it for you tho.