From 6dbfcf8b18c9234f7490974dd1bae30dce5c8154 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Tue, 1 Oct 2019 19:35:01 +0000 Subject: [PATCH] move the merge down 1 day to try and catch up with actual date --- roles/awstats/files/combineHttpLogs.sh | 4 +++- roles/web-data-analysis/files/condense-mirrorlogs.sh | 4 +++- roles/web-data-analysis/files/run-daily-awstats.sh | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/roles/awstats/files/combineHttpLogs.sh b/roles/awstats/files/combineHttpLogs.sh index 36d9d94826..d52b846afc 100644 --- a/roles/awstats/files/combineHttpLogs.sh +++ b/roles/awstats/files/combineHttpLogs.sh @@ -22,7 +22,9 @@ # Because sync-http may not get all logs for 3 days, we only merge # things after 4 days. -NUMDAYS=4 +# 2019-10-01 Dropped this down to 3 days.. + +NUMDAYS=3 YEAR=$(/bin/date -d "-${NUMDAYS} days" +%Y) MONTH=$(/bin/date -d "-${NUMDAYS} days" +%m) DAY=$(/bin/date -d "-${NUMDAYS} days" +%d) diff --git a/roles/web-data-analysis/files/condense-mirrorlogs.sh b/roles/web-data-analysis/files/condense-mirrorlogs.sh index f8b3568017..a20e16b961 100644 --- a/roles/web-data-analysis/files/condense-mirrorlogs.sh +++ b/roles/web-data-analysis/files/condense-mirrorlogs.sh @@ -24,7 +24,9 @@ # take a day to combine all the logs onto combined-httpd. So we assume # we are 5 days behind. -let NUMDAYS=5 +# We have dropped this down to 3 days on 2019-10-01 + +let NUMDAYS=4 let OLDDAYS=$(( $NUMDAYS+1 )) PROJECT=mirrors diff --git a/roles/web-data-analysis/files/run-daily-awstats.sh b/roles/web-data-analysis/files/run-daily-awstats.sh index 2756ed2257..c124a0ae18 100644 --- a/roles/web-data-analysis/files/run-daily-awstats.sh +++ b/roles/web-data-analysis/files/run-daily-awstats.sh @@ -24,7 +24,9 @@ # take a day to combine all the logs onto combined-httpd. So we assume # we are 6 days behind. -let NUMDAYS=6 +# We have dropped this down to 3 days on 2019-10-01 + +let NUMDAYS=5 # This is the year/month/day for a N days ago. YEAR=$(/bin/date -d "-${NUMDAYS} days" +%Y)