mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Support underscores in URLs; typo.
This commit is contained in:
parent
edb8732d8e
commit
11405c780a
@ -185,7 +185,7 @@ sub get_fieldname{
|
||||
# Same as get_fieldname except it doesn't substr
|
||||
sub get_id{
|
||||
my $url=$_[0];
|
||||
$url =~ s/\W//g;
|
||||
$url =~ s/[\W_]//g;
|
||||
return $url;
|
||||
}
|
||||
|
||||
@ -195,7 +195,7 @@ $debug && print "Scriptname: " . $scriptname . "\n";
|
||||
#
|
||||
# The filename format is http_load_X_Y where
|
||||
# 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);
|
||||
$0 =~ /http_load(?:_([^_]+)|)_(.+)\s*$/;
|
||||
|
Loading…
Reference in New Issue
Block a user