fixed an undeclared global symbol '$imgfmt_lc' in 'traffacct.pm'

This commit is contained in:
Jordi Sanfeliu 2016-10-21 09:20:38 +02:00
parent 63e6d78609
commit b3a4870e89
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
3.N.N - DD-MMM-YYYY
====================
- Fixed an undeclared global symbol "$imgfmt_lc" in 'traffacct.pm'.
3.9.0 - 14-Oct-2016
====================
- Added a complete graph for Linux Traffic Control with the 'tc' command. [#74]

View File

@ -316,6 +316,7 @@ sub traffacct_sendreports {
my $myself = (caller(0))[3];
my ($config, $debug) = @_;
my $traffacct = $config->{traffacct};
my $imgfmt_lc = lc($config->{image_format});
my (undef, undef, undef, undef, $prev_month, $prev_year) = localtime(time - 3600);
my $n;