ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/Coro/myhttpd/access.pl
(Generate patch)

Comparing cvsroot/Coro/myhttpd/access.pl (file contents):
Revision 1.22 by root, Mon Dec 3 14:44:14 2001 UTC vs.
Revision 1.23 by root, Mon Dec 3 15:16:42 2001 UTC

41sub wake_next { 41sub wake_next {
42 my $self = shift; 42 my $self = shift;
43 43
44 $self->sort; 44 $self->sort;
45 45
46 while($self->{slots} && @{$self->{wait}}) { 46 while($self->{slots} > 0 && @{$self->{wait}}) {
47 my $transfer = shift @{$self->{wait}}; 47 my $transfer = shift @{$self->{wait}};
48 if ($transfer) { 48 if ($transfer) {
49 $self->{lastspb} = $transfer->{spb}; 49 $self->{lastspb} = $transfer->{spb};
50 $self->{avgspb} ||= $transfer->{spb}; 50 $self->{avgspb} ||= $transfer->{spb};
51 $self->{avgspb} = $self->{avgspb} * 0.95 + $transfer->{spb} * 0.05; 51 $self->{avgspb} = $self->{avgspb} * 0.95 + $transfer->{spb} * 0.05;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines