Fix revert to single thread when last_line_parsed exists. Thanks to Bruno Almeida for the report.
Fix issue in incremental mode when parsing is stopped after rotating log and rotated log has new lines. The new file was not parsed at all. Thanks to CZAirwolf for the report.
Fix incomplete completion of progress bar since previous patch.
Session count is immediately decreased when a FATAL error is received in the current session.
Add -R | --retention option to set the maximum number of week reports to preserve in the output directory for incremental mode. Thanks to Kong Man for the feature request.
Fix wrong average duration on query that generate the most locks. Thanks to Pascal-b for the report.
Change pgBadger logo and ico to the new one.
Slighty improve javascript.

- use only one call of sql_select
- use only one call of sql_format
- use jQuery selector instead of getElementById to avoid js errors when
not found.
Merge pull request #183 from rjuju/fix_js

Slighty improve javascript.
Fix label of Reset button. Thanks to Julien Rouhaud for the report.
Update ChangeLog and version to 6.0
Fix typo
Add -B or --bar-graph command line option to use bar instead of line in graph. Thanks to Bart Dopheide for the suggestion. Also fix Checkpoint Wal files usage graph title.
- Fix issue in calculating min/max/avg in "General Activity" report. It was build on the sum of queries duration per minutes instead of each duration. Thanks to Jayadevan M for the report.
- The same issue remains with percentile that are build using the sum of duration per minutes and doesn't represent the real queries duration.
- This commit also include a modification in convert_time() method to reports milliseconds.
Fix automatic detection of rsyslogd logs. Thanks to David Day for the report.
Keep tick formatting when zooming.
Merge pull request #190 from rjuju/fix_zoom

Keep tick formatting when zooming.
Add a new program pgbadger_tools.pl to demonstrate how to deal with pgBadger binary files to build your own new feature. The first one 'explain-slowest' allow printing of top slowest queries as EXPLAIN statements.
Fix case where die with interrupt signal is received when using -e option. Thanks to Lloyd Albin for the report.
Move pgbadger_tools.pl program and README.tools into the tools/ subdirectory with removing the extension. Add more comments and explanations.