1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 10:39:53 +00:00

Plugin amr: fix regex issue

An unescpaed left brace is rejected by recent versions of perl.
This commit is contained in:
Lars Kruse 2019-08-12 05:49:33 +02:00
parent 9695f9d635
commit fe379b6f05

View file

@ -133,7 +133,7 @@ sub parse
while (<$log>) { while (<$log>) {
# \d protects us against HTML injection here, be careful when changing # \d protects us against HTML injection here, be careful when changing
if (m,SCM:{ID:(\d+) +.* +Consumption: +(\d+) +,) { if (m,SCM:\{ID:(\d+) +.* +Consumption: +(\d+) +,) {
$stations{$1} = $2; $stations{$1} = $2;
$signals{$1}++; $signals{$1}++;
} }