diff --git a/src/my_portscanner/scan_tools/Scan.py b/src/my_portscanner/scan_tools/Scan.py index 234f10e..69c9fda 100644 --- a/src/my_portscanner/scan_tools/Scan.py +++ b/src/my_portscanner/scan_tools/Scan.py @@ -52,7 +52,7 @@ def _get_latency(self) -> None: """ packet = IP(dst=self.target_ip) / ICMP() start_time = time.time() - response = sr1(packet, timeout=self.max_rtt_timeout, verbose=0) + response = sr1(packet, timeout=self.max_rtt_timeout / 1000, verbose=0) if response: latency = time.time() - start_time print(f"Host is up ({latency}s latency).")