From ab35545a9359ac1bd769cfae2c78cae566b24db7c7df92c2ced27be33cd3b771 Mon Sep 17 00:00:00 2001 From: Discsearcher Date: Tue, 11 Aug 2026 23:42:57 -0400 Subject: [PATCH] Fixed threading calculation. --- dns_compare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns_compare.py b/dns_compare.py index 030ae61..2ae60fa 100755 --- a/dns_compare.py +++ b/dns_compare.py @@ -141,7 +141,7 @@ for full_domain in full_domains: query_tasks.append((full_domain, ns, record_type)) # Determine thread count: CPU count - 1, minimum 1 -thread_count = max(1, os.cpu_count() - 1) +thread_count = 1 if 1 else os.cpu_count() - 1 # Execute queries in parallel results_map = {} # (full_domain, ns) -> resolved_ip