mirror of https://github.com/mikaku/Monitorix.git
fixed in 'libvirt.pm' limiting to 100 all CPU values greater than 100
This commit is contained in:
parent
6d16857ce9
commit
e6c56b66b0
5
Changes
5
Changes
|
@ -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.
|
||||
|
|
|
@ -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 |")) {
|
||||
|
|
Loading…
Reference in New Issue