Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions lib/redistat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,7 @@ def group_separator
end
attr_writer :group_separator

end
end
ObjectSpace.define_finalizer(self, proc { Redistat.buffer.flush (true) })


# ensure buffer is flushed on program exit
Kernel.at_exit do
Redistat.buffer.flush(true)
end
end