Removed call to tell, we were spending too much time in this method unnecessary.
This commit is contained in:
parent
593c4a1f78
commit
77eb7936d9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue