summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Ritter2020-03-11 16:39:02 +0100
committerSteffen Ritter2020-03-11 16:39:02 +0100
commita38169a17762324db12f5023c7767bc647b01a3f (patch)
treecb7a3818ba205c10cb5c051854cfbb04e6a7ad39
parent[vbox-src] Always add demo user to vboxusers on bootup (diff)
downloadmltk-a38169a17762324db12f5023c7767bc647b01a3f.tar.gz
mltk-a38169a17762324db12f5023c7767bc647b01a3f.tar.xz
mltk-a38169a17762324db12f5023c7767bc647b01a3f.zip
[qemukvm] Fix cpu core assignment
-rw-r--r--core/modules/qemukvm/data/opt/openslx/vmchooser/plugins/qemukvm/includes/determine_hardware_limitations.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modules/qemukvm/data/opt/openslx/vmchooser/plugins/qemukvm/includes/determine_hardware_limitations.inc b/core/modules/qemukvm/data/opt/openslx/vmchooser/plugins/qemukvm/includes/determine_hardware_limitations.inc
index 890f956e..dd83b587 100644
--- a/core/modules/qemukvm/data/opt/openslx/vmchooser/plugins/qemukvm/includes/determine_hardware_limitations.inc
+++ b/core/modules/qemukvm/data/opt/openslx/vmchooser/plugins/qemukvm/includes/determine_hardware_limitations.inc
@@ -76,6 +76,7 @@ set_vm_hw_limits() {
# check for allocated cores
+ declare -g CPU_CORES="${HW_THREADS:-1}"
declare -rg HOST_CORE_COUNT="${CPU_CORES}"
[ "${CPU_CORES}" -gt "${MAXCORES}" ] && CPU_CORES="${MAXCORES}"