Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion testping1.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ def is_reachable(ip, timeout=1):
# Removing pbar.set_description(f"Pinging {ip_address}...") here avoids console I/O bottleneck

if future.result():
print(f"Device reachable at: {ip_address}")
# ⚑ Bolt: Replaced print() with tqdm.write() to prevent synchronous console I/O
# bottlenecks and progress bar redraw interference when rendering rapid output.
tqdm.write(f"Device reachable at: {ip_address}")
pbar.update(1) # Update progress bar

print("Scanning complete.")
Expand Down
Loading