ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/Main.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/Main.pm (file contents):
Revision 1.29 by root, Thu Nov 17 04:15:10 2016 UTC vs.
Revision 1.31 by root, Mon Nov 19 00:56:08 2018 UTC

73use DC::UI::ChatView; 73use DC::UI::ChatView;
74use DC::MessageDistributor; 74use DC::MessageDistributor;
75use DC::Pod; 75use DC::Pod;
76use DC::MapWidget; 76use DC::MapWidget;
77use DC::Macro; 77use DC::Macro;
78
79# printf "%5d %5d %5d %5d\n", $_, DC::minpot $_, DC::ld32 $_, 2 << ((DC::ld32 $_ - 1));
78 80
79$SIG{QUIT} = sub { Carp::cluck "QUIT" }; 81$SIG{QUIT} = sub { Carp::cluck "QUIT" };
80$SIG{PIPE} = 'IGNORE'; 82$SIG{PIPE} = 'IGNORE';
81 83
82$EV::DIED = sub { 84$EV::DIED = sub {
1540 $DELIANTRA_DEBUG ^= $_[0]; 1542 $DELIANTRA_DEBUG ^= $_[0];
1541 1543
1542 if ($DELIANTRA_DEBUG & 16) { 1544 if ($DELIANTRA_DEBUG & 16) {
1543 $BW_WATCHER = EV::periodic 0, 1, 0, sub { 1545 $BW_WATCHER = EV::periodic 0, 1, 0, sub {
1544 return unless $CONN; 1546 return unless $CONN;
1545 debug sprintf "%8.2gKB/s", $CONN->{octets_in} / 1e3; 1547 debug sprintf "%8.2gkB/s", $CONN->{octets_in} / 1e3;
1546 $CONN->{octets_in} = 0; 1548 $CONN->{octets_in} = 0;
1547 }; 1549 };
1548 } else { 1550 } else {
1549 undef $BW_WATCHER; 1551 undef $BW_WATCHER;
1550 } 1552 }
2028 $table->add_at (0, ++$row, new DC::UI::Label align => 1, text => "Output-Rate"); 2030 $table->add_at (0, ++$row, new DC::UI::Label align => 1, text => "Output-Rate");
2029 $table->add_at (1, $row, new DC::UI::Entry 2031 $table->add_at (1, $row, new DC::UI::Entry
2030 text => $CFG->{output_rate}, 2032 text => $CFG->{output_rate},
2031 tooltip => "The maximum bandwidth in bytes per second that the server should not exceed " 2033 tooltip => "The maximum bandwidth in bytes per second that the server should not exceed "
2032 . "when sending data. When 0 or unset, the server " 2034 . "when sending data. When 0 or unset, the server "
2033 . "default will be used, which is usually around 100kb/s. Most servers will " 2035 . "default will be used, which is usually around 100kB/s. Most servers will "
2034 . "dynamically find an optimal rate, so adjust this only when necessary.", 2036 . "dynamically find an optimal rate, so adjust this only when necessary.",
2035 on_changed => sub { $CFG->{output_rate} = $_[1]; 1 }, 2037 on_changed => sub { $CFG->{output_rate} = $_[1]; 1 },
2036 ); 2038 );
2037 2039
2038 $vbox->add (new DC::UI::FancyFrame 2040 $vbox->add (new DC::UI::FancyFrame

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines