mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 01:29:54 -06:00
Merge pull request #2320 from SimonFair/Fix-p-core-if-no-e-cores
Fix p-cores
This commit is contained in:
@@ -464,6 +464,7 @@ function parse_cpu_ranges($file) {
|
||||
if (!is_file($file)) return null;
|
||||
$ranges = file_get_contents($file);
|
||||
$ranges = trim($ranges);
|
||||
if ($ranges === '') return null;
|
||||
$cores = [];
|
||||
foreach (explode(',', $ranges) as $range) {
|
||||
if (strpos($range, '-') !== false) {
|
||||
|
||||
Reference in New Issue
Block a user