time_difference = current_time - prior_time
if time_difference <= 0:
raise CollectError('Timestamp difference: %d' % time_difference)
# will happen if CT was rebooted, network reset max int reached, etc
packet_difference = current_packets - prior_packets
if...