Révision 11405c78
Support underscores in URLs; typo.
| plugins/http/http_load_ | ||
|---|---|---|
| 185 | 185 |
# Same as get_fieldname except it doesn't substr |
| 186 | 186 |
sub get_id{
|
| 187 | 187 |
my $url=$_[0]; |
| 188 |
$url =~ s/\W//g;
|
|
| 188 |
$url =~ s/[\W_]//g;
|
|
| 189 | 189 |
return $url; |
| 190 | 190 |
} |
| 191 | 191 |
|
| ... | ... | |
| 195 | 195 |
# |
| 196 | 196 |
# The filename format is http_load_X_Y where |
| 197 | 197 |
# X: The line number in urls.txt |
| 198 |
# X: The type of graph (elements, size, loadtime, ..)
|
|
| 198 |
# Y: The type of graph (elements, size, loadtime, ..)
|
|
| 199 | 199 |
|
| 200 | 200 |
my ($id,$type); |
| 201 | 201 |
$0 =~ /http_load(?:_([^_]+)|)_(.+)\s*$/; |
Formats disponibles : Unified diff