X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=bin%2Fbrisk_explain_update.sh;h=51faf5b97045c32cbcad4c7534f5bdb7ef7901be;hb=7ee4d75003cb32207ffdb3cf16b1644039578945;hp=f032c9cf720e8cad479143c9890e3556b901023d;hpb=72c580d5abfe6772618361720eeffdfeacbf2458;p=brisk.git diff --git a/bin/brisk_explain_update.sh b/bin/brisk_explain_update.sh index f032c9c..51faf5b 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="86400" -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"