Tweak QS Settings

This commit is contained in:
Taylor Helsper 2020-02-29 12:07:20 -06:00
parent 1d2398fad5
commit 88f32762f1
2 changed files with 8 additions and 5 deletions

View File

@ -44,10 +44,12 @@ while true; do
echo "Marked as uploader, unlimited upload, unlimited download"
transmission-remote -U
transmission-remote -D
transmission-remote -t 1 --peers 5
elif [ ! -f "/mnt/hdd/mynode/quicksync/.quicksync_complete" ]; then
echo "QuickSync not complete, limited upload, unlimited download"
transmission-remote -u $UPLOAD_RATE
transmission-remote -D
transmission-remote -t 1 --peers 10
elif [ ! -f "/mnt/hdd/mynode/.mynode_bitcoind_synced" ]; then
echo "Bitcoin not synced, stopping upload, stopping download"
transmission-remote -u 0
@ -57,9 +59,10 @@ while true; do
transmission-remote -u $UPLOAD_RATE
transmission-remote -d $DOWNLOAD_RATE
else
echo "Setting upload rate to unlimited"
transmission-remote -U
transmission-remote -D
echo "Setting upload rate for stable state"
transmission-remote -u $UPLOAD_RATE
transmission-remote -d $DOWNLOAD_RATE
transmission-remote -t 1 --peers 5
fi
sleep 10m
done

View File

@ -68,8 +68,8 @@ fi
if [ ! -f $QUICKSYNC_DIR/blockchain.torrent ]; then
cp $QUICKSYNC_DIR/blockchain_temp.torrent $QUICKSYNC_DIR/blockchain.torrent
else
if [ $IS_RASPI3 -eq 1 ] && [ ! -f $UPLOADER_FILE ]; then
# Don't help with uploads during normal operation.... too slow
if [ ! -f $UPLOADER_FILE ]; then
# Don't update torrent for normal operations.... too slow
sleep 1s
else
# Run commands as long as torrents are different (last command updates torrent file)