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:
Dominik Csapak 2017-12-12 13:25:15 +01:00 committed by Wolfgang Bumiller
parent 64d39c2ef2
commit aa74e838e8
2 changed files with 0 additions and 23 deletions

View File

@ -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;

View File

@ -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 {