From 6c7dadceff229fd29dc8d7d5a514a5a74f3603ed Mon Sep 17 00:00:00 2001 From: Nigel Kukard <nkukard@lbsd.net> Date: Tue, 26 Nov 2013 22:04:17 +0000 Subject: [PATCH] Use aligned time as last cleanup time --- opentrafficshaper/plugins/statistics/statistics.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opentrafficshaper/plugins/statistics/statistics.pm b/opentrafficshaper/plugins/statistics/statistics.pm index 3498772..20da5e1 100644 --- a/opentrafficshaper/plugins/statistics/statistics.pm +++ b/opentrafficshaper/plugins/statistics/statistics.pm @@ -275,7 +275,8 @@ sub plugin_init # Set last cleanup to now my $now = time(); foreach my $key (keys %{$statsConfig}) { - $lastCleanup->{$key} = $now; + # Get aligned time so we cleanup sooner + $lastCleanup->{$key} = _getAlignedTime($now); } $lastConfigManagerStats = $now; } -- GitLab