TCP scanner now sleeps in miliseconds instead of seconds.

This commit is contained in:
VakarisZ 2019-01-24 13:58:58 +02:00
parent c38793b527
commit 074aa1af50
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ class NetworkScanner(object):
break break
if WormConfiguration.tcp_scan_interval: if WormConfiguration.tcp_scan_interval:
time.sleep(WormConfiguration.tcp_scan_interval) # time.sleep uses seconds, while config is in milliseconds
time.sleep(WormConfiguration.tcp_scan_interval/1000)
@staticmethod @staticmethod
def _is_any_ip_in_subnet(ip_addresses, subnet_str): def _is_any_ip_in_subnet(ip_addresses, subnet_str):