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

Comparing Coro/myhttpd/shell.pl (file contents):
Revision 1.17 by root, Tue Aug 28 02:30:49 2001 UTC vs.
Revision 1.19 by root, Fri Sep 28 13:54:21 2001 UTC

45 push @data, "$_->{country}/$_->{remote_addr} $_->{written} $rate $_->{method} $_->{uri}\n"; 45 push @data, "$_->{country}/$_->{remote_addr} $_->{written} $rate $_->{method} $_->{uri}\n";
46 } 46 }
47 } 47 }
48 print $fh sort @data; 48 print $fh sort @data;
49 print $fh scalar@data, " ($::conns) connections\n";#d# 49 print $fh scalar@data, " ($::conns) connections\n";#d#
50 print $fh "$::written bytes written in the last ",$::NOW - $last_ts, " seconds\n"; 50 print $fh "$::written bytes written in the last ", $::NOW - $last_ts, " seconds\n";
51 printf $fh "(%.1f bytes/s)\n", $::written / ($::NOW - $last_ts); 51 printf $fh "(%.1f bytes/s)\n", $::written / ($::NOW - $last_ts);
52 ($last_ts, $::written) = ($::NOW, 0); 52 ($last_ts, $::written) = ($::NOW, 0);
53 } elsif ($cmd eq "refresh") { 53 } elsif ($cmd eq "refresh") {
54 do "config.pl"; 54 do "config.pl";
55 print $fh "config.pl: $@\n" if $@; 55 print $fh "config.pl: $@\n" if $@;
56 %statdata_cache = (); 56 %statdata_cache = ();
57 read_blockuri; 57 conn::read_blockuri;
58 read_blockref; 58 conn::read_blockref;
59 } elsif ($cmd eq "restart") { 59 } elsif ($cmd eq "restart") {
60 $::RESTART = 1; 60 $::RESTART = 1;
61 unloop; 61 unloop;
62 print $fh "restarting, cu!\n"; 62 print $fh "restarting, cu!\n";
63 last; 63 last;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines