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.30 by root, Sun Jan 29 00:11:23 2017 UTC

1540 $DELIANTRA_DEBUG ^= $_[0]; 1540 $DELIANTRA_DEBUG ^= $_[0];
1541 1541
1542 if ($DELIANTRA_DEBUG & 16) { 1542 if ($DELIANTRA_DEBUG & 16) {
1543 $BW_WATCHER = EV::periodic 0, 1, 0, sub { 1543 $BW_WATCHER = EV::periodic 0, 1, 0, sub {
1544 return unless $CONN; 1544 return unless $CONN;
1545 debug sprintf "%8.2gKB/s", $CONN->{octets_in} / 1e3; 1545 debug sprintf "%8.2gkB/s", $CONN->{octets_in} / 1e3;
1546 $CONN->{octets_in} = 0; 1546 $CONN->{octets_in} = 0;
1547 }; 1547 };
1548 } else { 1548 } else {
1549 undef $BW_WATCHER; 1549 undef $BW_WATCHER;
1550 } 1550 }
2028 $table->add_at (0, ++$row, new DC::UI::Label align => 1, text => "Output-Rate"); 2028 $table->add_at (0, ++$row, new DC::UI::Label align => 1, text => "Output-Rate");
2029 $table->add_at (1, $row, new DC::UI::Entry 2029 $table->add_at (1, $row, new DC::UI::Entry
2030 text => $CFG->{output_rate}, 2030 text => $CFG->{output_rate},
2031 tooltip => "The maximum bandwidth in bytes per second that the server should not exceed " 2031 tooltip => "The maximum bandwidth in bytes per second that the server should not exceed "
2032 . "when sending data. When 0 or unset, the server " 2032 . "when sending data. When 0 or unset, the server "
2033 . "default will be used, which is usually around 100kb/s. Most servers will " 2033 . "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.", 2034 . "dynamically find an optimal rate, so adjust this only when necessary.",
2035 on_changed => sub { $CFG->{output_rate} = $_[1]; 1 }, 2035 on_changed => sub { $CFG->{output_rate} = $_[1]; 1 },
2036 ); 2036 );
2037 2037
2038 $vbox->add (new DC::UI::FancyFrame 2038 $vbox->add (new DC::UI::FancyFrame

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines