mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
squid-accounting: get trafficdata from LAST month, when month has changed
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user