Pull changes to prevent divide by 0 in quiet_ping

There is the possibility to divide by 0 with the current implementation of quiet_ping() which causes program to stop on uncaught exception. This fixes the issue.