Commit 328e8d65 authored by Petr Špaček's avatar Petr Špaček

allinone: stop nsname2ipset and domain2ipset if less < 0.01 % is left

parent c707a8df
......@@ -43,7 +43,7 @@ def main():
if remaining == 0:
logging.info('all NS names resolved to an IP address')
break
elif new == 0:
elif new < total / 100 / 100: # ignore last < 0.01 %
logging.info('unable to resolve last %d NS names to an IP address, '
'leaving %0.2f %% NS names unresolved',
remaining,
......@@ -71,7 +71,7 @@ def main():
if remaining == 0:
logging.info('all domains have at least one NS IP address which responds')
break
elif new == 0:
elif new < total / 100 / 100: # ignore last < 0.01 %
logging.info('unable to find NS IP addresses for last %d domains, '
'leaving %0.2f %% domains without working NS IP address',
remaining,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment