metrics/access/aggregate: skip the current day since the logs are incomplete.

This commit is contained in:
Jimmy Berry 2018-06-20 16:30:20 -05:00
parent 409f021948
commit 625fa382fa

View File

@ -14,6 +14,8 @@ const IPV6_PREFIX = 'ipv6.';
const PRODUCT_PATTERN = '/^(10\.[2-3]|11\.[0-4]|12\.[1-3]|13\.[1-2]|42\.[1-3]|15\.[0]|tumbleweed)$/'; const PRODUCT_PATTERN = '/^(10\.[2-3]|11\.[0-4]|12\.[1-3]|13\.[1-2]|42\.[1-3]|15\.[0]|tumbleweed)$/';
$begin = new DateTime(); $begin = new DateTime();
// Skip the current day since the logs are incomplete and not compressed yet.
$begin->sub(date_interval_create_from_date_string('1 day'));
$source_map = [ $source_map = [
'ipv4' => [ 'ipv4' => [
'2010-01-03' => false, '2010-01-03' => false,