]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: dc/NodeView: mark only usage over 75% with a warning
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 18 May 2021 10:26:11 +0000 (12:26 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 18 May 2021 13:14:51 +0000 (15:14 +0200)
As 60% is pretty low, and normally still OK and even wanted to have
(no need for having an over-dimensioned setup with lots of unused
resources).

Note, this is not a off-by-one, I want to compare real bigger > 75%

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

index ea1b56a09d92bb9da9430afd224a8e5a58842c1a..ff674233322995c3bdf0a64f93e9982ea63e67fd 100644 (file)
@@ -117,7 +117,7 @@ Ext.define('PVE.widget.ProgressBar', {
 
        if (value > 0.89) {
            me.addCls('critical');
-       } else if (value > 0.59) {
+       } else if (value > 0.75) {
            me.addCls('warning');
        }
     },