lib/mixins/gets_memory_protection.rb in request-log-analyzer-1.8.0 vs lib/mixins/gets_memory_protection.rb in request-log-analyzer-1.8.1
- old
+ new
@@ -27,10 +27,10 @@
# Last Position in the file
@last_pos ||= nil
if @last_pos.nil?
seek(0, IO::SEEK_END)
@last_pos = pos
- seek(0,0)
+ seek(@current_pos, IO::SEEK_SET)
end
#
# If we have more than one line in the buffer or we have reached the
# beginning of the file, send the last line in the buffer to the caller.
\ No newline at end of file