[pve-devel] [PATCH v4 manager 6/6] ui: util: refactor mps to mp

Fabian Ebner f.ebner at proxmox.com
Tue Mar 22 12:18:36 CET 2022


Am 14.03.22 um 10:35 schrieb Aaron Lauterer:
> @@ -1805,9 +1805,7 @@ Ext.define('PVE.Utils', {
>      },
>  
>      nextFreeMP: function(type, config) {
> -	let mptype = type === "mp" ? "mps" : type;
> -
> -	for (let i = 0; i < PVE.Utils.mp_counts[mptype]; i++) {
> +	for (let i = 0; i < PVE.Utils.mp_counts[type]; i++) {
>  	    let confid = `${type}${i}`;
>  	    if (!Ext.isDefined(config[confid])) {
>  		return {

Nit: If this patch were ordered before the first one, we could start out
with the simpler version.





More information about the pve-devel mailing list