fixed in 'libvirt.pm' to hide empty groups

This commit is contained in:
Jordi Sanfeliu 2015-12-03 16:09:58 +01:00
parent d6082b02bf
commit c0356b9571
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@ N.N.N - DD-MMM-2015
- Added the option 'cmd' in 'libvirt.pm' in order to be able to execute a
custom command like 'virsh -r -c qemu:///session'.
- Fixed in 'libvirt.pm' limiting to 100 all CPU values greater than 100.
- Fixed in 'libvirt.pm' to hide empty groups.
3.8.1 - 13-Nov-2015

View File

@ -417,6 +417,9 @@ sub libvirt_cgi {
foreach my $vmg (sort keys %{$libvirt->{list}}) {
my @lvl = split(',', $libvirt->{list}->{$vmg});
# hide empty groups
next if !scalar(@lvl);
if($e) {
print(" <br>\n");
}