Opened 13 years ago

Closed 13 years ago

#1231 closed Enhancement (invalid)

Binary vs SI prefix

Reported by: geirha Owned by:
Priority: Low Milestone: None Set
Component: Transmission Version: 1.33
Severity: Trivial Keywords:


From what I can see in the source, speeds and sizes are calculated using powers of 2 (210) rather than powers of 10 (103). As such, I suggest using binary prefixes rather than the ambiguous SI prefixes.

This sed seems to do the needed changes.

find . -name "*.c" | xargs -- sed -i 's/\<\([KMG]\)B/\1iB/g'

Change History (1)

comment:1 Changed 13 years ago by charles

  • Resolution set to invalid
  • Status changed from new to closed

We use the binary prefix for consistency with other GTK+ applications as described here.

If g_format_size_for_display() changes to use the SI prefix notation I'd be happy to follow suit, as it's my personal preference too.

I suggest you open up a glib ticket at

Note: See TracTickets for help on using tickets.