From 200512d860ad1d9680cbbbb323165819d95c80b9 Mon Sep 17 00:00:00 2001 From: Stefan Seidel Date: Mon, 23 Apr 2012 10:34:12 +0200 Subject: [PATCH] fix bug which produces incorrect scaling e.g. on the host cpu usage graph --- plugins/vmware/esx_ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/vmware/esx_ b/plugins/vmware/esx_ index f5f71e6a..48985e61 100755 --- a/plugins/vmware/esx_ +++ b/plugins/vmware/esx_ @@ -402,12 +402,12 @@ sub munin_print { my $cfg = $par->{config}; $par = $par->{selector}; my $oldGroup = "_-_"; + my $factor; # find values according to criteria in $par and sort by grouping parameter foreach (sort { $a->{$cfg->{groupBy}} cmp $b->{$cfg->{groupBy}} } grep { my $d = $_; all { (not exists $d->{$_}) || $d->{$_} =~ /$par->{$_}/ } keys %$par; } @$arr) { my $groupCrit = $cfg->{groupBy}; my $curGroup = $_->{$groupCrit}; - my $factor; if (!($curGroup eq $oldGroup)) { # we're in a new group, meaning a new graph starts