mirror of
https://github.com/darold/squidanalyzer.git
synced 2025-07-31 01:44:29 +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
|
# The entry is not allowed in included file so skip it
|
||||||
next if (!$found);
|
next if (!$found);
|
||||||
$found = 0;
|
$found = 0;
|
||||||
@ -608,6 +609,7 @@ sub parseFile
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Compute month statistics
|
# Compute month statistics
|
||||||
|
$self->_clear_stats();
|
||||||
if (!$self->{QuietMode}) {
|
if (!$self->{QuietMode}) {
|
||||||
print STDERR "Generating monthly data files now...\n";
|
print STDERR "Generating monthly data files now...\n";
|
||||||
}
|
}
|
||||||
@ -621,6 +623,7 @@ sub parseFile
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Compute year statistics
|
# Compute year statistics
|
||||||
|
$self->_clear_stats();
|
||||||
if (!$self->{no_year_stat}) {
|
if (!$self->{no_year_stat}) {
|
||||||
if (!$self->{QuietMode}) {
|
if (!$self->{QuietMode}) {
|
||||||
print STDERR "Compute and dump year statistics for $self->{first_year} to $self->{last_year}\n";
|
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