Removed call to tell, we were spending too much time in this method unnecessary.

This commit is contained in:
Darold Gilles 2014-08-10 16:07:22 +02:00
parent 593c4a1f78
commit 77eb7936d9
1 changed files with 2 additions and 5 deletions

View File

@ -464,8 +464,8 @@ sub parseFile
# Read and parse each line of the access log file
while ($line = <$logfile>) {
# Store the current line starting position in logfile
my $tmp_pos = $logfile->tell() - length($line);
# Store the current position in logfile
$self->{end_offset} += length($line);
chomp($line);
@ -510,9 +510,6 @@ sub parseFile
# Register the last parsing time and last offset position in logfile
$self->{end_time} = $time;
# Get/set current position in logfile
$self->{end_offset} = $tmp_pos;
# Register the first parsing time
if (!$self->{begin_time}) {
$self->{begin_time} = $time;