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

Before Change


        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

        om.out.debug("The scan will finish in %s (%s%% done)" % (eta, progress))

After Change


        
        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)

        om.out.debug("The scan will finish in %.2f seconds (%s%% done)" % (eta, progress))

        return progress
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: sony/nnabla-examples
Commit Name: 56926bc8b4a158e1c40cddbc795303bc6a66f44d
Time: 2019-05-23
Author: sukriti.mehrotra@sony.com
File Name: semantic-segmentation/deeplabv3plus/model_inference.py
Class Name:
Method Name: post_process


Project Name: sony/nnabla-examples
Commit Name: 56926bc8b4a158e1c40cddbc795303bc6a66f44d
Time: 2019-05-23
Author: sukriti.mehrotra@sony.com
File Name: semantic-segmentation/deeplabv3plus/image_preprocess.py
Class Name:
Method Name: resize