From: Matteo Nastasi (mop) Date: Sat, 18 Mar 2017 10:07:17 +0000 (+0100) Subject: add delta var X-Git-Tag: v5.4.1~4 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=47da075ab5553354c5f1541029772ce42883a52b;p=brisk.git add delta var --- diff --git a/bin/brisk_explain_update.sh b/bin/brisk_explain_update.sh index f032c9c..106416c 100755 --- a/bin/brisk_explain_update.sh +++ b/bin/brisk_explain_update.sh @@ -25,10 +25,11 @@ fi # now="$(date -d '2014-01-21 23:56:00' +%s)" now="$(date +%s)" +delta="0" -to="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "($now / 86400) * 86400 + 7200 " | bc))" -from="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "($now / 86400) * 86400 + 7200 - (86400)" | bc))" -# to="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "$now + 7200 " | bc))" -# from="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "$now - 9200 " | bc))" +to="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "($now / 86400) * 86400 + 7200 + $delta" | bc))" +from="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "($now / 86400) * 86400 + 7200 - (86400) + $delta" | bc))" +# to="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "$now + 7200 + $delta" | bc))" +# from="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "$now - 9200 + $delta" | bc))" curl -d "pazz=$admin_password" "$web_url/briskin5/stat-day.php?from=$from&to=$to"