Projet

Général

Profil

Révision 11405c78

ID11405c780a64ffefe843d5c8a5d7483c6a6fc39d
Parent edb8732d
Enfant 028275b3

Ajouté par iammookli il y a environ 13 ans

Support underscores in URLs; typo.

Voir les différences:

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