Skip to content

Commit

Permalink
change backup time from 22 hours to 24 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
ety001 committed Dec 25, 2021
1 parent 7cbeff3 commit 1d8f6e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/sync-sv-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ if [[ ! -z "$BLOCKCHAIN_TIME" ]]; then
if [[ ! -z $LAST_BACKUP_TIME ]]; then
LAST_BACKUP_TIMESTAMP=`date -d $LAST_BACKUP_TIME +%s`
BACKUP_INTERVAL=$((${CURRENT_SECS} - ${LAST_BACKUP_TIMESTAMP}))
# backup each 22 hours
if [[ ${BACKUP_INTERVAL} -ge 79200 ]]; then
# backup each 24 hours
if [[ ${BACKUP_INTERVAL} -ge 86400 ]]; then
STEEMD_PID=`pgrep -f p2p-endpoint`
kill -SIGINT $STEEMD_PID
echo steemdsync: waiting for steemd to exit cleanly
Expand Down

0 comments on commit 1d8f6e9

Please sign in to comment.