utils: render_cpu: fix theoretical bug

seems almost like this came from a failed application of the rules of
de-morgan...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-04-22 17:48:38 +02:00
parent 9e663a6a64
commit 1334cdcabc

View File

@ -866,7 +866,7 @@ utilities: {
}
let maxcpu = record.data.maxcpu || 1;
if (!Ext.isNumeric(maxcpu) && maxcpu >= 1) {
if (!Ext.isNumeric(maxcpu) || maxcpu < 1) {
return '';
}
let cpuText = maxcpu > 1 ? 'CPUs' : 'CPU';