Opened 9 years ago

Closed 9 years ago

#5033 closed Bug (fixed)

cli prints wrong status on console

Reported by: nkarthiks Owned by:
Priority: Low Milestone: 2.70
Component: CLI Version: 2.61
Severity: Minor Keywords:
Cc:

Description

When seeding, the CLI interface prints the wrong output:

Verifying local files (0.00%, 100.00% valid)

instead of

Seeding, uploading to 0 of 60 peer(s), 0 KiB/s [0.00]

This bug has been created somewhere between r12606 and r12611, where the values of TR_STATUS_CHECK, TR_STATUS_SEED (and others) were changed from being powers of 2 to consecutive values. Hence the value of tr_stat is interpreted wrong in getStatusStr in cli/cli.c. Because of the carefully chosen value for TR_STATUS_DOWNLOAD, this seems to work fine most of the time!

Attached is a patch that should fix this problem.

Attachments (1)

status-bug.patch (1.1 KB) - added by nkarthiks 9 years ago.
Patch for CLI status printing bug

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by nkarthiks

Patch for CLI status printing bug

comment:1 Changed 9 years ago by livings124

  • Milestone changed from None Set to 2.70
  • Version changed from 2.61+ to 2.61

Thanks! r13473

comment:2 Changed 9 years ago by livings124

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.