Support space in httpd status key
So total_accesses and total_kbytes are available again
This commit is contained in:
parent
3a9ec69a56
commit
0ca02b4974
|
@ -25,8 +25,8 @@ unless ($status){
|
|||
}
|
||||
|
||||
foreach my $line (split(/\n/, $status)){
|
||||
next unless ($line =~ m/^(\w+):\s([\.\d]+)/);
|
||||
my ($key, $val) = ($1,$2);
|
||||
next unless ($line =~ m/^(\w+(\s\w+)?):\s([\.\d]+)/);
|
||||
my ($key, $val) = ($1,$3);
|
||||
$key =~ s/\s/_/g;
|
||||
$key = lc $key;
|
||||
# Remove leading and trailing spaces
|
||||
|
|
Loading…
Reference in New Issue
Block a user