mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 03:42:52 +09:00
B #1859: Fix inconsistency between CPU and vCPU
This commit is contained in:
1 parent
a9dbbc79a1
commit
55a4d46106
1 file changed
+11
-1
+11
-1
@@ -135,9 +135,19 @@ define(function(require) {
|
||||
|
||||
if (Config.isFeatureEnabled("instantiate_cpu_factor")){
|
||||
$("div.cpu_input input", context).prop("disabled", true);
|
||||
var vcpuValue = $("div.vcpu_input input", context).val();
|
||||
if (vcpuValue !== ""){
|
||||
$("div.cpu_input input", context).val($("div.vcpu_input input", context).val() * Config.scaleFactor);
|
||||
} else {
|
||||
$("div.cpu_input input", context).val("");
|
||||
}
|
||||
$("div.vcpu_input input", context).on("change", function(){
|
||||
var vcpuValue = $("div.vcpu_input input", context).val();
|
||||
$("div.cpu_input input", context).val(vcpuValue * Config.scaleFactor);
|
||||
if (vcpuValue !== ""){
|
||||
$("div.cpu_input input", context).val(vcpuValue * Config.scaleFactor);
|
||||
} else {
|
||||
$("div.cpu_input input", context).val("");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user