From a85e2ec2fc2b3c4b14044568a8389886248c873b Mon Sep 17 00:00:00 2001 From: Nigel Kukard <nkukard@lbsd.net> Date: Mon, 13 Jan 2014 12:27:01 +0000 Subject: [PATCH] Adjusted stats consolidation We should now give around 1k entries per item --- .../plugins/statistics/statistics.pm | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/opentrafficshaper/plugins/statistics/statistics.pm b/opentrafficshaper/plugins/statistics/statistics.pm index cbedebe..fdfa7ac 100644 --- a/opentrafficshaper/plugins/statistics/statistics.pm +++ b/opentrafficshaper/plugins/statistics/statistics.pm @@ -102,21 +102,25 @@ my $config = { # Stats configuration my $statsConfig = { 1 => { - 'precision' => 300, - 'retention' => 2, # 2 days + 'precision' => 300, # 5min + 'retention' => 4, # 4 days }, 2 => { - 'precision' => 900, - 'retention' => 14, # 2 week + 'precision' => 900, # 15min + 'retention' => 14, # 14 days }, 3 => { - 'precision' => 3600, + 'precision' => 3600, # 1hr 'retention' => 28 * 2, # 2 months }, 4 => { 'precision' => 21600, # 6hr - 'retention' => 28 * 12 * 2, # 2 years + 'retention' => 28 * 6, # 6 months }, + 5 => { + 'precision' => 86400, # 24hr + 'retention' => 28 * 12 * 2, # 2 years + } }; -- GitLab