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.15 by root, Sun Aug 19 23:57:52 2001 UTC vs.
Revision 1.18 by root, Thu Aug 30 12:35:28 2001 UTC

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 read_blockuri; 57 conn::read_blockuri;
57 read_blockref; 58 conn::read_blockref;
58 } elsif ($cmd eq "restart") { 59 } elsif ($cmd eq "restart") {
59 $::RESTART = 1; 60 $::RESTART = 1;
60 unloop; 61 unloop;
61 print $fh "restarting, cu!\n"; 62 print $fh "restarting, cu!\n";
62 last; 63 last;
63 } elsif ($cmd eq "country") { 64 } elsif ($cmd eq "country") {
64 print $fh ip_request($_), "\n"; 65 print $fh netgeo::ip_request($_), "\n";
65 } 66 }
66 } else { 67 } else {
67 print $fh "try one of @commands\n"; 68 print $fh "try one of @commands\n";
68 } 69 }
69 } 70 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines