]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: vm: improve validator for CPU share range
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 10 Feb 2022 18:08:36 +0000 (19:08 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 10 Feb 2022 18:08:37 +0000 (19:08 +0100)
Allow the range for the old CGroup V1 one, as while deprecated,
that's still supported and a includes the range for v2 anyway.

With a next major release we may drop v1 support completely, probably
in PVE 8.0, then we can reduce this to the range of [1, 1000] that v2
supports.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/qemu/ProcessorEdit.js

index 539e3e7d99a8189569eac72f236e042c4a8f2584..1bed287705c79391830a4406b18b958f6dd07dce 100644 (file)
@@ -187,8 +187,9 @@ Ext.define('PVE.qemu.ProcessorInputPanel', {
            xtype: 'proxmoxintegerfield',
            name: 'cpuunits',
            fieldLabel: gettext('CPU units'),
-           minValue: 8,
-           maxValue: 500000,
+           // FIXME: change to [1, 1000] once cgroup v1 support gets removed (PVE 8 ?)
+           minValue: 2,
+           maxValue: 262144,
            value: '1024',
            deleteEmpty: true,
            allowBlank: true,