summaryrefslogtreecommitdiffstats
path: root/core/modules/vmware12
diff options
context:
space:
mode:
authorJonathan Bauer2018-05-07 12:59:46 +0200
committerJonathan Bauer2018-05-07 12:59:46 +0200
commit9a5d8828d6710ffc408fbd9c62a4ad1d5a1a43d6 (patch)
treea7fd1ab5108a14d9841e4389e73f5bffa6eaea9b /core/modules/vmware12
parent[vmware12] CPU_CORES should not be readonly (diff)
downloadmltk-9a5d8828d6710ffc408fbd9c62a4ad1d5a1a43d6.tar.gz
mltk-9a5d8828d6710ffc408fbd9c62a4ad1d5a1a43d6.tar.xz
mltk-9a5d8828d6710ffc408fbd9c62a4ad1d5a1a43d6.zip
[vmware*] fix CPU_CORES for vmware14 too
+ small formatting
Diffstat (limited to 'core/modules/vmware12')
-rw-r--r--core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/determine_hardware_limitations.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/determine_hardware_limitations.inc b/core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/determine_hardware_limitations.inc
index 957a15f8..b7c59819 100644
--- a/core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/determine_hardware_limitations.inc
+++ b/core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/determine_hardware_limitations.inc
@@ -174,6 +174,7 @@ set_vm_hardware_limits() {
MAXCORES="1"
;;
esac
+
declare -g CPU_CORES="${HW_THREADS:-1}"
declare -rg HOST_CORE_COUNT="$CPU_CORES"
[ "$CPU_CORES" -gt "$MAXCORES" ] && CPU_CORES="$MAXCORES"