a0a4fd099e664bcbbd207df1368e9ce8d947a407,w3af/core/controllers/core_helpers/status.py,CoreStatus,get_progress_percentage,#CoreStatus#,512

Before Change


        current_time = time.time()

        if eta is None:
            eta = self.get_eta()

        spent_time = float(current_time - scan_start_time)
        estimated_end_time = spent_time + eta

        progress = int(spent_time / estimated_end_time) * 100

After Change


        
        :return: A % of scan progress as an integer
        
        eta = self.get_eta() if eta is None else eta

        run_time = self.get_run_time_seconds()
        estimated_end_time = run_time + eta

        progress = int(run_time / estimated_end_time * 100)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: andresriancho/w3af
Commit Name: a0a4fd099e664bcbbd207df1368e9ce8d947a407
Time: 2018-07-21
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/core_helpers/status.py
Class Name: CoreStatus
Method Name: get_progress_percentage


Project Name: andresriancho/w3af
Commit Name: a7a3579460aad638f6f30005b14b6012361a12c1
Time: 2018-07-20
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/core_helpers/status.py
Class Name: CoreStatus
Method Name: get_status_as_dict


Project Name: andresriancho/w3af
Commit Name: a7a3579460aad638f6f30005b14b6012361a12c1
Time: 2018-07-20
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/core_helpers/status.py
Class Name: CoreStatus
Method Name: get_long_status