2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Fixing Evictions Stats Key Collision

This commit is contained in:
Matt West 2012-02-23 18:24:31 -08:00
parent 503c2a0d73
commit 281bd584c4

View File

@ -810,6 +810,9 @@ sub fetch_stats {
while (my $line = <$s>) {
if ($line =~ /STAT\s(.+?)\s(.*)/) {
my ($skey,$svalue) = ($1,$2);
if ($skey eq 'evictions') {
$skey = 'evictions_active';
}
$stats{$skey} = $svalue;
}
last if $line =~ /^END/;