get_percent_complete return value cast to int
This commit is contained in:
parent
ac6078ea28
commit
1225371ca8
|
@ -184,6 +184,6 @@ abstract class WC_CSV_Batch_Exporter extends WC_CSV_Exporter {
|
|||
* @return int
|
||||
*/
|
||||
public function get_percent_complete() {
|
||||
return $this->total_rows ? floor( ( $this->get_total_exported() / $this->total_rows ) * 100 ) : 100;
|
||||
return $this->total_rows ? (int) floor( ( $this->get_total_exported() / $this->total_rows ) * 100 ) : 100;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue