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

Comparing Coro/myhttpd/httpd.pl (file contents):
Revision 1.90 by root, Wed Jan 27 20:06:57 2010 UTC vs.
Revision 1.91 by root, Thu Feb 4 22:35:47 2010 UTC

73sub unused_bandwidth { 73sub unused_bandwidth {
74 $unused_bytes += $_[0]; 74 $unused_bytes += $_[0];
75 if ($unused_last < $NOW - 30 && $unused_bytes / ($NOW - $unused_last) > 50000) { 75 if ($unused_last < $NOW - 30 && $unused_bytes / ($NOW - $unused_last) > 50000) {
76 $unused_last = $NOW; 76 $unused_last = $NOW;
77 $unused_bytes = 0; 77 $unused_bytes = 0;
78 $queue_file->force_wake_next; 78 $queue_file->force_wake_next
79 slog 1, "forced filetransfer due to unused bandwidth"; 79 and slog 1, "forced filetransfer due to unused bandwidth";
80 } 80 }
81} 81}
82 82
83sub listen_on { 83sub listen_on {
84 my $listen = $_[0]; 84 my $listen = $_[0];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines