LogFiles(): fix bug when end_time was specified