fixed divide by 0 if no packets received