mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 18:38:30 +00:00
Merge pull request #212 from iammookli/master
http_load_: Support underscores in URLs
This commit is contained in:
commit
028275b3d2
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