mirror of
https://github.com/darold/squidanalyzer.git
synced 2025-07-29 08:54:16 +02:00
Fix bug where statistics from the last parsed day was count twice in months and years statisics.
This commit is contained in:
parent
e334911eea
commit
cbc7b1bb4a
@ -514,6 +514,7 @@ sub parseFile
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# The entry is not allowed in included file so skip it
|
||||
next if (!$found);
|
||||
$found = 0;
|
||||
@ -608,6 +609,7 @@ sub parseFile
|
||||
}
|
||||
|
||||
# Compute month statistics
|
||||
$self->_clear_stats();
|
||||
if (!$self->{QuietMode}) {
|
||||
print STDERR "Generating monthly data files now...\n";
|
||||
}
|
||||
@ -621,6 +623,7 @@ sub parseFile
|
||||
}
|
||||
|
||||
# Compute year statistics
|
||||
$self->_clear_stats();
|
||||
if (!$self->{no_year_stat}) {
|
||||
if (!$self->{QuietMode}) {
|
||||
print STDERR "Compute and dump year statistics for $self->{first_year} to $self->{last_year}\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user