History log of /haiku/headers/private/shared/StringForRate.h
Revision Date Author Comments
# e54f86aa 01-Sep-2018 Augustin Cavalier <waddlesplash@gmail.com>

libshared: Change string_for_rate to use KiB/s instead of Kbps.

string_for_size uses KiB, etc., and so when the two are combined (e.g.
pkgman's progress display), it looked especially strange to have two
different units.


# 36784bbc 25-Jun-2012 Philippe Saint-Pierre <stpere@gmail.com>

StringForRate(): adjustments

* Make 1000.0f the default base
* Also use sizeof() in MediaPlayer to get the string size rather than hardcode.

Thanks Marcus


# 8d87f2b4 25-Jun-2012 Philippe Saint-Pierre <stpere@gmail.com>

StringForRate()

Introduce a function to generate the string representation of a bitrate
(kbps, mbps, gbps, etc..)

* Factor out the code from MediaPlayer InfoWindow
* Allow different bases (/1000 or /1024)


# 36784bbc2c3faad776d9d12481a0ed9a6aabb646 25-Jun-2012 Philippe Saint-Pierre <stpere@gmail.com>

StringForRate(): adjustments

* Make 1000.0f the default base
* Also use sizeof() in MediaPlayer to get the string size rather than hardcode.

Thanks Marcus


# 8d87f2b43afbba4bdeb052163cee6b70dba8974d 25-Jun-2012 Philippe Saint-Pierre <stpere@gmail.com>

StringForRate()

Introduce a function to generate the string representation of a bitrate
(kbps, mbps, gbps, etc..)

* Factor out the code from MediaPlayer InfoWindow
* Allow different bases (/1000 or /1024)