Révision cb2a0e64
[http_load_] Also count elements served over HTTPS
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
| plugins/http/http_load_ | ||
|---|---|---|
| 309 | 309 |
$verbose && print " Processing: " . $$link[0] . " " . $$link[1] . " " . $$link[2] . "\n"; |
| 310 | 310 |
|
| 311 | 311 |
# Extract the hostname and add it to the hash |
| 312 |
if($$link[2] =~ m/http\:\/\/([^\/]+).*/){
|
|
| 312 |
if($$link[2] =~ m/https?\:\/\/([^\/]+).*/){
|
|
| 313 | 313 |
$host=$1; |
| 314 | 314 |
$output{"elements_" . $host}+=1;
|
| 315 | 315 |
} |
Formats disponibles : Unified diff