9a4b8475eb6665b63d77b50e98362e2690522155,w3af/core/controllers/core_helpers/status.py,CoreStatus,get_crawl_qsize,#CoreStatus#,218

Before Change



    def get_crawl_qsize(self):
        dc = self._w3af_core.strategy.get_discovery_consumer()
        return 0 if dc is None else dc.in_queue.qsize()

    def get_crawl_output_qsize(self):
        dc = self._w3af_core.strategy.get_discovery_consumer()
        return 0 if dc is None else dc.out_queue.qsize()

After Change



    def get_crawl_qsize(self):
        dc = self._w3af_core.strategy.get_discovery_consumer()
        if dc is None:
            return 0

        running_tasks = dc.get_running_task_count()
        queued_tasks = dc.in_queue.qsize()
        return running_tasks + queued_tasks

    def get_crawl_output_qsize(self):
        dc = self._w3af_core.strategy.get_discovery_consumer()
        return 0 if dc is None else dc.out_queue.qsize()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: andresriancho/w3af
Commit Name: 9a4b8475eb6665b63d77b50e98362e2690522155
Time: 2018-08-29
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/core_helpers/status.py
Class Name: CoreStatus
Method Name: get_crawl_qsize


Project Name: andresriancho/w3af
Commit Name: 9a4b8475eb6665b63d77b50e98362e2690522155
Time: 2018-08-29
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/core_helpers/status.py
Class Name: CoreStatus
Method Name: get_grep_qsize


Project Name: andresriancho/w3af
Commit Name: 9a4b8475eb6665b63d77b50e98362e2690522155
Time: 2018-08-29
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/core_helpers/status.py
Class Name: CoreStatus
Method Name: get_audit_qsize