Skip to content

Commit af1f389

Browse files
committed
The 206 code indicates a partial download which should be counted webmin/webmin#459
1 parent 9f07b8b commit af1f389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virtual_feature.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ sub feature_bandwidth
12311231
open($LOG, "<", $f);
12321232
}
12331233
while(<$LOG>) {
1234-
if (/^(\S+)\s+(\S+)\s+(\S+)\s+\[(\d+)\/(\S+)\/(\d+):(\d+):(\d+):(\d+)\s+(\S+)\]\s+"([^"]*)"\s+(\S+)\s+(\S+)/ && $12 ne "206") {
1234+
if (/^(\S+)\s+(\S+)\s+(\S+)\s+\[(\d+)\/(\S+)\/(\d+):(\d+):(\d+):(\d+)\s+(\S+)\]\s+"([^"]*)"\s+(\S+)\s+(\S+)/) {
12351235
# Valid-looking log line .. work out the time
12361236
no warnings "once";
12371237
my $ltime = timelocal($9, $8, $7, $4, $virtual_server::apache_mmap{lc($5)}, $6-1900);

0 commit comments

Comments
 (0)