Fix to properly divide as float

This commit is contained in:
Daniel Goldberg 2019-01-28 17:50:29 +02:00
parent e90f11cab3
commit 38276f4abb
1 changed files with 1 additions and 1 deletions

View File

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