Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#431 closed bug (Fixed)

KiB, MiB and GiB are counted as powers of 1000 instead of 1024.

Reported by: Lajnold Owned by: markybob
Priority: trivial Milestone:
Component: GTK UI Version: 0.9.06 (1.0.0_RC6)
Keywords: Cc:

Description

In various parts of the GUI, KiB, MiB and GiB are counted as powers of 1000 instead of 1024, which I noticed when "Uploaded" for a torrent went straight from "999 MiB" to "1 GiB".

Attachments (1)

deluge_patch1 (641 bytes) - added by anonymous 16 years ago.

Download all attachments as: .zip

Change History (4)

Changed 16 years ago by anonymous

comment:1 Changed 16 years ago by Lajnold

In retrospect, the "problem" is actually rounding done from the format string(s). The previously posted patch solves it, but whether it should be included depends on whether the intention is to show numbers very close to the next "unit" as being exactly 1.0 of that "unit". Personally, I think it should be shown as 1000-1023 of the smaller "unit" before it changes.

(Where "unit" refers to KiB, MiB and GiB)

comment:2 Changed 16 years ago by andar

  • Component changed from 0.5.x to gtkui
  • Milestone set to 1.0.0
  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from 0.5.x_svn to 0.9.06 (1.0.0_RC6)

Agreed. This has been fixed in [3719] although only for trunk and the 1.0.0_RC branch. The 0.5.x branch is pretty much defunct at this point.

comment:3 Changed 15 years ago by anonymous

  • Milestone 1.0.0 deleted

Milestone 1.0.0 deleted

Note: See TracTickets for help on using tickets.