Rename airtime_mvc/ to legacy/
This commit is contained in:
parent
f0879322c2
commit
3e18d42c8b
1316 changed files with 0 additions and 0 deletions
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
|
||||
class BitrateFormatter
|
||||
{
|
||||
/**
|
||||
* @string length
|
||||
*/
|
||||
private $_bitrate;
|
||||
|
||||
/*
|
||||
* @param string $bitrate (bits per second)
|
||||
*/
|
||||
public function __construct($bitrate)
|
||||
{
|
||||
$this->_bitrate = $bitrate;
|
||||
}
|
||||
|
||||
public function format()
|
||||
{
|
||||
$kbps = bcdiv($this->_bitrate, 1000, 0);
|
||||
|
||||
if ($kbps == 0) {
|
||||
return "";
|
||||
} else {
|
||||
return "$kbps Kbps";
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue