1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 18:38:30 +00:00

Handle large numbers of errors better (i.e. remove *all* commas from the number)

This commit is contained in:
Paul Saunders 2011-08-22 11:05:06 +02:00 committed by Steve Schnepp
parent d254343aa6
commit a9575c1177

View file

@ -223,20 +223,20 @@ if ($mech->success()){
$page =~ m{FEC Errors.*<td[^>]+>([\d,\.]+) / ([\d,\.]+)};
my $upFEC = $1;
my $downFEC = $2;
$upFEC =~ s/,//;
$downFEC =~ s/,//;
$upFEC =~ s/,//g;
$downFEC =~ s/,//g;
$page =~ m{CRC Errors.*<td[^>]+>([\d,\.]+) / ([\d,\.]+)};
my $upCRC = $1;
my $downCRC = $2;
$upCRC =~ s/,//;
$downCRC =~ s/,//;
$upCRC =~ s/,//g;
$downCRC =~ s/,//g;
$page =~ m{HEC Errors.*<td[^>]+>([\d,\.]+) / ([\d,\.]+)};
my $upHEC = $1;
my $downHEC = $2;
$upHEC =~ s/,//;
$downHEC =~ s/,//;
$upHEC =~ s/,//g;
$downHEC =~ s/,//g;
print "downFEC.value $downFEC\n";
print "upFEC.value $upFEC\n";