Skip to content

Commit

Permalink
Fix converting byte notation not converted to bytes correctly if not …
Browse files Browse the repository at this point in the history
…in M. Fxies #77
  • Loading branch information
polevaultweb committed Jul 31, 2020
1 parent 1ad6f26 commit ffc4e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/wp-background-process.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ protected function get_memory_limit() {
$memory_limit = '32000M';
}

return intval( $memory_limit ) * 1024 * 1024;
return wp_convert_hr_to_bytes( $memory_limit );
}

/**
Expand Down

0 comments on commit ffc4e9b

Please sign in to comment.