mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 00:23:19 +00:00
LXC GUI: use cpulimit instead of cpus
And move cpuunits to resource panel.
This commit is contained in:
parent
74e3975e12
commit
08d1d26356
@ -50,22 +50,6 @@ Ext.define('PVE.lxc.Options', {
|
||||
storage: {
|
||||
header: gettext('Storage'),
|
||||
defaultValue: 'no set'
|
||||
},
|
||||
cpuunits: {
|
||||
header: gettext('CPU units'),
|
||||
defaultValue: '1024',
|
||||
editor: caps.vms['VM.Config.CPU'] ? {
|
||||
xtype: 'pveWindowEdit',
|
||||
subject: gettext('CPU units'),
|
||||
items: {
|
||||
xtype: 'numberfield',
|
||||
name: 'cpuunits',
|
||||
fieldLabel: gettext('CPU units'),
|
||||
minValue: 8,
|
||||
maxValue: 500000,
|
||||
allowBlank: false
|
||||
}
|
||||
} : undefined
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -49,11 +49,20 @@ Ext.define('PVE.lxc.RessourceInputPanel', {
|
||||
},
|
||||
{
|
||||
xtype: 'numberfield',
|
||||
name: 'cpus',
|
||||
name: 'cpulimit',
|
||||
minValue: 0,
|
||||
value: '1',
|
||||
step: 1,
|
||||
fieldLabel: gettext('CPUs'),
|
||||
fieldLabel: gettext('CPU limit'),
|
||||
labelWidth: labelWidth,
|
||||
allowBlank: false
|
||||
},
|
||||
{
|
||||
xtype: 'numberfield',
|
||||
name: 'cpuunits',
|
||||
fieldLabel: gettext('CPU units'),
|
||||
minValue: 8,
|
||||
maxValue: 500000,
|
||||
labelWidth: labelWidth,
|
||||
allowBlank: false
|
||||
}
|
||||
@ -122,8 +131,8 @@ Ext.define('PVE.lxc.RessourceView', {
|
||||
return PVE.Utils.format_size(value*1024*1024);
|
||||
}
|
||||
},
|
||||
cpus: {
|
||||
header: gettext('Processors'),
|
||||
cpulimit: {
|
||||
header: gettext('CPU limit'),
|
||||
never_delete: true,
|
||||
editor: resEditor,
|
||||
defaultValue: 1,
|
||||
@ -132,6 +141,12 @@ Ext.define('PVE.lxc.RessourceView', {
|
||||
return gettext('unlimited');
|
||||
}
|
||||
},
|
||||
cpuunits: {
|
||||
header: gettext('CPU units'),
|
||||
never_delete: true,
|
||||
editor: resEditor,
|
||||
defaultValue: 1024
|
||||
},
|
||||
disk: {
|
||||
header: gettext('Disk size'),
|
||||
editor: resEditor,
|
||||
|
Loading…
Reference in New Issue
Block a user