Always show fractional MB, or never
Always show fractional MB, or never
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.
Re: Always show fractional MB, or never
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.
Re: Always show fractional MB, or never
sprintf("%07d", speedInMegabytes) would do very well for the foreseeable future