autoconfigure mining threads

This commit is contained in:
Jeffrey Paul 2016-09-02 00:51:38 +02:00
parent ce5a3a0c92
commit 884abb8951
2 changed files with 1 additions and 3 deletions

View File

@ -14,8 +14,6 @@
* STEEMD\_MINER\_NAME
* STEEMD\_PRIVATE\_KEY
* Bitcoin Wallet Import Format (WIF)
* STEEMD\_MINING\_THREADS
* default 8
* STEEMD\_EXTRA\_OPTS
* passed in to steemd on command line

View File

@ -39,7 +39,7 @@ fi
if [[ ! -z "$STEEMD_MINER_NAME" ]]; then
ARGS+=" --miner=[\"$STEEMD_MINER_NAME\",\"$STEEMD_PRIVATE_KEY\"]"
ARGS+=" --mining-threads=${STEEMD_MINING_THREADS:-8}"
ARGS+=" --mining-threads=$(nproc)"
fi
if [[ ! -z "$STEEMD_PRIVATE_KEY" ]]; then