mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
Support underscores in URLs; typo.
This commit is contained in:
parent
edb8732d8e
commit
11405c780a
1 changed files with 2 additions and 2 deletions
|
@ -185,7 +185,7 @@ sub get_fieldname{
|
||||||
# Same as get_fieldname except it doesn't substr
|
# Same as get_fieldname except it doesn't substr
|
||||||
sub get_id{
|
sub get_id{
|
||||||
my $url=$_[0];
|
my $url=$_[0];
|
||||||
$url =~ s/\W//g;
|
$url =~ s/[\W_]//g;
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ $debug && print "Scriptname: " . $scriptname . "\n";
|
||||||
#
|
#
|
||||||
# The filename format is http_load_X_Y where
|
# The filename format is http_load_X_Y where
|
||||||
# X: The line number in urls.txt
|
# X: The line number in urls.txt
|
||||||
# X: The type of graph (elements, size, loadtime, ..)
|
# Y: The type of graph (elements, size, loadtime, ..)
|
||||||
|
|
||||||
my ($id,$type);
|
my ($id,$type);
|
||||||
$0 =~ /http_load(?:_([^_]+)|)_(.+)\s*$/;
|
$0 =~ /http_load(?:_([^_]+)|)_(.+)\s*$/;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue