Skip to content

Commit

Permalink
more backoff
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmur committed Dec 9, 2023
1 parent d4d4640 commit 6c13bba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cron_files/5_dragonitelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ if [[ $(ls -l $dlog | wc -l) != 0 ]] ;then
swDayLimit=$(zgrep 'Exceeded daily limit. New account needed' $plog | grep -v "${fort_area_name}" |wc -l)
swRange=$(zgrep 'Got out of range 10 times. Possibly exceeded daily limit. New account needed' $plog | grep -v "${fort_area_name}" |wc -l)
swTime=$(zgrep 'Maximum connection time exceeded' $plog | grep -v "${fort_area_name}" |wc -l)
backoff=$(zgrep 'BACKOFF: Error logging into Pogo' $plog | grep -v "${fort_area_name}" |wc -l)
backoff=$(zgrep 'BACKOFF: Error logging into Pogo\|BACKOFF: New account attempt' $plog | grep -v "${fort_area_name}" |wc -l)
released24h=$(zgrep -c 'which is less than 24 hours ago. This is probably not what you want' $plog)
released7d=$(zgrep -c 'which is less than 1 week ago. This is probably not what you want' $plog)

Expand Down Expand Up @@ -111,7 +111,7 @@ if [[ $(ls -l $dlog | wc -l) != 0 ]] ;then
swDayLimit=$(zgrep 'Exceeded daily limit. New account needed' $plog | grep "${fort_area_name}" | wc -l)
swRange=$(zgrep 'Got out of range 10 times. Possibly exceeded daily limit. New account needed' $plog | grep "${fort_area_name}" | wc -l)
swTime=$(zgrep 'Maximum connection time exceeded' $plog | grep "${fort_area_name}" | wc -l)
backoff=$(zgrep 'BACKOFF: Error logging into Pogo' $plog | grep "${fort_area_name}" | wc -l)
backoff=$(zgrep 'BACKOFF: Error logging into Pogo\|BACKOFF: New account attempt' $plog | grep "${fort_area_name}" | wc -l)

# insert fort data
MYSQL_PWD=$sqlpass mysql -u$sqluser -h$dbip -P$dbport $blisseydb -e "insert ignore into dragoLog_fort (datetime,rpl,rpc4,rpc5,rpc6,rpc7,rpc8,rpc9,rpc11,rpc12,rpc13,rpc14,rpc15,rpc16,rpc17,rpc18,swWarnSusp,swBanned,swDisabled,swDayLimit,swRange,swTime,backoff) values ('$process_time',5,'$rpc4','$rpc5','$rpc6','$rpc7','$rpc8','$rpc9','$rpc11','$rpc12','$rpc13','$rpc14','$rpc15','$rpc16','$rpc17','$rpc18','$swWarnSusp','$swBanned','$swDisabled','$swDayLimit','$swRange','$swTime','$backoff');"
Expand Down
6 changes: 3 additions & 3 deletions settings.run
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ rm -f $folder/cron_files/*.sql
cp $folder/default_files/5_worker.sql.default $folder/cron_files/5_worker.sql
cp $folder/default_files/5_mon_area.sql.default $folder/cron_files/5_mon_area.sql
cp $folder/default_files/15_drago_account.sql.default $folder/cron_files/15_drago_account.sql
sed -i "s/blissey\./$blisseydb\./g" $folder/cron_files/5_*.sql
sed -i "s/golbat\./$scannerdb\./g" $folder/cron_files/5_*.sql
sed -i "s/dragonite\./$controllerdb\./g" $folder/cron_files/5_*.sql
sed -i "s/blissey\./$blisseydb\./g" $folder/cron_files/*.sql
sed -i "s/golbat\./$scannerdb\./g" $folder/cron_files/*.sql
sed -i "s/dragonite\./$controllerdb\./g" $folder/cron_files/*.sql

# Create crontab file
echo "Creating crontab.txt in $folder"
Expand Down

0 comments on commit 6c13bba

Please sign in to comment.