]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
squid-accounting: get trafficdata from LAST month, when month has changed
authorAlexander Marx <alexander.marx@ipfire.org>
Thu, 7 Aug 2014 13:10:11 +0000 (15:10 +0200)
committerAlexander Marx <alexander.marx@ipfire.org>
Thu, 7 Aug 2014 13:10:11 +0000 (15:10 +0200)
src/squid-accounting/acct.pl

index 59898b75fe79d8410e137bdd54f1eaab490170b2..d535901b679f62ba6bb27cce76a2860b9ae9382e 100755 (executable)
@@ -209,7 +209,7 @@ sub sendbill {
        my $cur = $_[2];
        my @now = localtime(time);
        $now[5] = $now[5] + 1900;
-       my $actmonth = $now[4]+1;
+       my $actmonth = $now[4];
        my $month                       = '0'.$actmonth if $actmonth < 10;
        my $actyear  = $now[5];
        my ($from,$till)=&ACCT::getmonth($actmonth,$actyear);                                   #FIXME month and year as variables!