* bug 33571: fix yottabits/s in Language::formatBitrate
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 8 Jan 2012 20:15:08 +0000 (20:15 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 8 Jan 2012 20:15:08 +0000 (20:15 +0000)
commit9e77c61850ec073372fa520c5de8bb8ff36f1a83
treea663b299f7d7120b16b1884d309da99280e373d8
parentc17e35a503774ad3ebb0b5608492c396c820acf9
* bug 33571: fix yottabits/s in Language::formatBitrate

Problem was caused by inexact floating-point comparisons with values returned from
log10(); worked around by simply duplicating the very similar code in the function
immediately below, which does the same thing with 1024 instead of 1000 unit sizes,
uses only simple division, and passes the test cases.
languages/Language.php