idoutils: add a table trimming option for 'downtime history'

fixes #3989