Skip to content

Commit ffc4e9b

Browse files
committed
Fix converting byte notation not converted to bytes correctly if not in M. Fxies #77
1 parent 1ad6f26 commit ffc4e9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/wp-background-process.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ protected function get_memory_limit() {
370370
$memory_limit = '32000M';
371371
}
372372

373-
return intval( $memory_limit ) * 1024 * 1024;
373+
return wp_convert_hr_to_bytes( $memory_limit );
374374
}
375375

376376
/**

0 commit comments

Comments
 (0)