Set stats.endtime to "now" before calling packet_stats - #65