Skip to content

Commit

Permalink
The 206 code indicates a partial download which should be counted web…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Nov 19, 2016
1 parent 9f07b8b commit af1f389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ sub feature_bandwidth
open($LOG, "<", $f);
}
while(<$LOG>) {
if (/^(\S+)\s+(\S+)\s+(\S+)\s+\[(\d+)\/(\S+)\/(\d+):(\d+):(\d+):(\d+)\s+(\S+)\]\s+"([^"]*)"\s+(\S+)\s+(\S+)/ && $12 ne "206") {
if (/^(\S+)\s+(\S+)\s+(\S+)\s+\[(\d+)\/(\S+)\/(\d+):(\d+):(\d+):(\d+)\s+(\S+)\]\s+"([^"]*)"\s+(\S+)\s+(\S+)/) {
# Valid-looking log line .. work out the time
no warnings "once";
my $ltime = timelocal($9, $8, $7, $4, $virtual_server::apache_mmap{lc($5)}, $6-1900);
Expand Down

0 comments on commit af1f389

Please sign in to comment.