fixed in 'libvirt.pm' limiting to 100 all CPU values greater than 100

This commit is contained in:
Jordi Sanfeliu 2015-12-01 10:03:16 +01:00
parent 6d16857ce9
commit e6c56b66b0
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
N.N.N - DD-MMM-2015
====================
- Fixed in 'libvirt.pm' limiting to 100 all CPU values greater than 100.
3.8.1 - 13-Nov-2015
====================
- Added support in ZFS graph for versions older than 0.6.4.

View File

@ -179,6 +179,7 @@ sub libvirt_update {
$cpu = $c - ($config->{libvirt_hist}->{$str} || 0);
$cpu = 0 unless $c != $cpu;
$cpu = $cpu * 100 / 60;
$cpu = $cpu > 100 ? 100 : $cpu;
$config->{libvirt_hist}->{$str} = $c;
}
if(open(IN, "virsh dommemstat $vm |")) {