mirror of
https://github.com/unraid/webgui.git
synced 2026-05-20 05:09:38 -05:00
CPU pinning page: make cores/threads calculation consistent
This commit is contained in:
@@ -37,7 +37,7 @@ case 'vm':
|
||||
$ht = exec("lscpu|grep -Po '^Thread\\(s\\) per core:\\s+\\K\\d+'") ?: 1; // fetch hyperthreading
|
||||
}
|
||||
// adjust for hyperthreading
|
||||
if ($vcpus > $ht && !$vcpus%$ht) {
|
||||
if ($vcpus > $ht && $vcpus%$ht===0) {
|
||||
$cores /= $ht;
|
||||
$threads = $ht;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user