Opened 14 years ago

Closed 14 years ago

#650 closed Bug (fixed)

-u0 and -d0 options are ignored

Reported by: pbenner Owned by: charles
Priority: Normal Milestone: 1.02
Component: CLI Version: 1.01
Severity: Normal Keywords:
Cc:

Description

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=461778

The transmissioncli program -d and -u options limit the download and upload
rates.  Rates of zero should be accepted, but are ignored.  Patch:

--- cli/transmissioncli.c~	2008-01-03 16:05:02.000000000 -0800
+++ cli/transmissioncli.c	2008-01-20 08:16:37.000000000 -0800
@@ -144,7 +144,7 @@
                      bindPort,                /* public port */
                      TR_ENCRYPTION_PREFERRED, /* encryption mode */
-                     uploadLimit > 0,         /* use upload speed limit? */
+                     uploadLimit >= 0,        /* use upload speed limit? */
                      uploadLimit,             /* upload speed limit */
-                     downloadLimit > 0,       /* use download speed limit? */
+                     downloadLimit >= 0,      /* use download speed limit? */
                      downloadLimit,           /* download speed limit */
                      512,                     /* globalPeerLimit */

Change History (2)

comment:1 Changed 14 years ago by charles

  • Milestone changed from None Set to 1.02
  • Owner set to charles
  • Status changed from new to assigned
  • Version changed from 1.00 to 1.01

comment:2 Changed 14 years ago by charles

  • Resolution set to fixed
  • Status changed from assigned to closed

1.0x: r4794 trunk: r4795

Thanks for the patch!

Note: See TracTickets for help on using tickets.