From: Mike Frysinger Date: Sat, 25 Feb 2012 22:03:35 +0000 (-0500) Subject: get # cpus via getconf X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9b06fa70b6fd5396614093965339187ac11061b4;p=home.git get # cpus via getconf --- diff --git a/.bin/flac2mp3 b/.bin/flac2mp3 index 5fbbdd6..4be5834 100755 --- a/.bin/flac2mp3 +++ b/.bin/flac2mp3 @@ -1,6 +1,6 @@ #!/bin/bash -maxj=4 +maxj=`getconf _NPROCESSORS_ONLN` jobs=() [[ $# -eq 0 ]] && set -- *.flac