mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2026-01-07 03:08:49 +00:00
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:
parent
9e663a6a64
commit
1334cdcabc
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user