def get_crawl_input_speed(self):
dc = self._w3af_core.strategy.get_discovery_consumer()
return None if dc is None else round_or_None(dc.in_queue.get_input_rpm())
def get_crawl_output_speed(self):
dc = self._w3af_core.strategy.get_discovery_consumer()
return None if dc is None else round_or_None(dc.in_queue.get_output_rpm())
After Change
def get_crawl_input_speed(self):
dc = self._w3af_core.strategy.get_discovery_consumer()
return 0 if dc is None else dc.in_queue.get_input_rpm()
def get_crawl_output_speed(self):
dc = self._w3af_core.strategy.get_discovery_consumer()
return 0 if dc is None else dc.in_queue.get_output_rpm()