We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f09038f commit fb9f11dCopy full SHA for fb9f11d
wpengine-phpcompat.php
@@ -130,8 +130,7 @@ function check_status() {
130
// If the scan is still running.
131
if ( $scan_status ) {
132
$to_encode['results'] = '0';
133
- // Adding one because we don't remove an item until it's done processing.
134
- $to_encode['progress'] = 100 - ( ( ( $count_jobs->publish + 1 ) / $total_jobs ) * 100 );
+ $to_encode['progress'] = ( ( $total_jobs - $count_jobs->publish ) / $total_jobs) * 100;
135
} else {
136
// Else return the results and clean up!
137
$scan_results = get_option( 'wpephpcompat.scan_results' );
0 commit comments