mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-04 17:58:53 +00:00
remove (near)full status for storages
since this is not a good default, we do not want the user to have to configure those limits for each storage, and a warning triangle was confusing for multiple users, we remove this again Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
64d39c2ef2
commit
aa74e838e8
@ -126,15 +126,6 @@ sub extract_storage_stats {
|
|||||||
$entry->{maxdisk} = ($d->[1] || 0) + 0;
|
$entry->{maxdisk} = ($d->[1] || 0) + 0;
|
||||||
$entry->{disk} = ($d->[2] || 0) + 0;
|
$entry->{disk} = ($d->[2] || 0) + 0;
|
||||||
$entry->{status} = 'available';
|
$entry->{status} = 'available';
|
||||||
if ($entry->{disk} > 0 && $entry->{maxdisk} > 0) {
|
|
||||||
my $usage = $entry->{disk} / $entry->{maxdisk};
|
|
||||||
|
|
||||||
if ($usage >= 0.9) {
|
|
||||||
$entry->{status} = 'full';
|
|
||||||
} elsif ($usage >= 0.6) {
|
|
||||||
$entry->{status} = 'nearfull';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $entry;
|
return $entry;
|
||||||
|
@ -171,20 +171,6 @@
|
|||||||
font-size: 0.6em;
|
font-size: 0.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* the warning triangle symbol */
|
|
||||||
.x-tree-icon-custom.nearfull:after,
|
|
||||||
.x-grid-icon-custom.nearfull:after {
|
|
||||||
content: "\f071";
|
|
||||||
color: #CC8E00;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* the error triangle symbol */
|
|
||||||
.x-tree-icon-custom.full:after,
|
|
||||||
.x-grid-icon-custom.full:after {
|
|
||||||
content: "\f071";
|
|
||||||
color: #CC1800;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* the lxc template */
|
/* the lxc template */
|
||||||
.x-tree-icon-custom.lxc:after,
|
.x-tree-icon-custom.lxc:after,
|
||||||
.x-grid-icon-custom.lxc:after {
|
.x-grid-icon-custom.lxc:after {
|
||||||
|
Loading…
Reference in New Issue
Block a user