Fixed divide by 0 error in ping command when no packets are sent
fixes #143