commit
190214747e
2 changed files with 1 additions and 8 deletions
|
@ -21,13 +21,6 @@ set_online_cores() {
|
|||
;;
|
||||
esac
|
||||
|
||||
if (( "${1}" < 2 )) && \
|
||||
[ "${MODE}" = "0" ]
|
||||
then
|
||||
echo "Invalid selection."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "${CORES}" -gt 0 ]
|
||||
then
|
||||
for core in $(seq 0 1 ${1})
|
||||
|
|
|
@ -483,7 +483,7 @@ clear_screen
|
|||
|
||||
### Reset the number of cores to use.
|
||||
NUMCORES=$(get_setting "system.cores")
|
||||
if [ -z "${NUMCORES}" ]
|
||||
if [ -n "${NUMCORES}" ]
|
||||
then
|
||||
onlinecores ${NUMCORES} 0
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue