Always show fractional MB, or never

Feature requests not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
mcandre
Posts: 39
Joined: Wed Dec 19, 2007 4:42 am

Always show fractional MB, or never

Post by mcandre » Sat Jun 11, 2016 3:09 am

When speed and total bytes uploaded/downloaded are displayed, either always show fractional MB (e.g. ... .0 MB) or never (... MB). Showing MB some of the time creates an annoying alignment jitter, especially in mobile browsers using the Web UI.

killemov
Posts: 419
Joined: Sat Jul 31, 2010 5:04 pm

Re: Always show fractional MB, or never

Post by killemov » Thu Dec 22, 2016 4:31 pm

Aligning number and letter combinations is tricky even without decimals. Only if you use a monospace font then you can do this without using separate fields for the number and the unit.

mcandre
Posts: 39
Joined: Wed Dec 19, 2007 4:42 am

Re: Always show fractional MB, or never

Post by mcandre » Mon Aug 21, 2017 4:37 pm

sprintf("%07d", speedInMegabytes) would do very well for the foreseeable future

Post Reply