#!/bin/sh
NPROCS=`grep -c ^processor /proc/cpuinfo`

if [ "$1" != "" ]; then
	NPROCS=$((NPROCS * $1))
fi

echo $NPROCS

