fit latest map metrics

This commit is contained in:
Colin Gagnaire 2019-01-29 17:59:45 +01:00
parent 78ca8adb11
commit de5224ee25
3 changed files with 8 additions and 10 deletions

View File

@ -121,8 +121,8 @@ sub manage_selection {
$self->{global} = {};
$self->{global} = {
ReceivedPackets => $result->{$mbean_broker}->{ReceivedPackets}->{andIncrement},
ProcessedPackets => $result->{$mbean_broker}->{ProcessedPackets}->{andIncrement},
ReceivedPackets => $result->{$mbean_broker}->{ReceivedPackets},
ProcessedPackets => $result->{$mbean_broker}->{ProcessedPackets},
};
}

View File

@ -111,9 +111,9 @@ sub manage_selection {
$self->{global} = {
DrilldownCandidatesQueue => $result->{$mbean_engine}->{DrilldownCandidatesQueue},
Cutbackcomputation => $result->{$mbean_engine}->{Cutbackcomputation}->{andIncrement},
Recursivecomputation => $result->{$mbean_engine}->{Recursivecomputation}->{andIncrement},
Minimalcomputation => $result->{$mbean_engine}->{Minimalcomputation}->{andIncrement},
Cutbackcomputation => $result->{$mbean_engine}->{Cutbackcomputation},
Recursivecomputation => $result->{$mbean_engine}->{Recursivecomputation},
Minimalcomputation => $result->{$mbean_engine}->{Minimalcomputation},
};
}

View File

@ -91,13 +91,11 @@ sub manage_selection {
];
my $result = $options{custom}->get_attributes(request => $self->{request}, nothing_quit => 0);
my $event_counters = $1 if ($result->{$mbean_event}->{EventCounter} =~ /\{(.*?)\}/);
$self->{global} = {};
foreach my $counter (split(',', $event_counters)) {
next if ($counter !~ /(\w+)\=(\d+)/);
$self->{global}->{$1} = $2;
foreach my $counter (keys %{$result->{$mbean_event}->{EventCounter}}) {
$self->{global}->{$counter} = $result->{$mbean_event}->{EventCounter}->{$counter};
}
}