SHA256
Fixed threading calculation.
This commit is contained in:
+1
-1
@@ -141,7 +141,7 @@ for full_domain in full_domains:
|
|||||||
query_tasks.append((full_domain, ns, record_type))
|
query_tasks.append((full_domain, ns, record_type))
|
||||||
|
|
||||||
# Determine thread count: CPU count - 1, minimum 1
|
# 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
|
# Execute queries in parallel
|
||||||
results_map = {} # (full_domain, ns) -> resolved_ip
|
results_map = {} # (full_domain, ns) -> resolved_ip
|
||||||
|
|||||||
Reference in New Issue
Block a user