|
|
$index = min(((int) log($traff, $KB)), count($units) - 1);
|
|
$index = min(((int) log($traff, $KB)), count($units) - 1);
|
|
|
$result = round($traff / pow($KB, $index), 3) . ' ' . $units[$index] . 'b';
|
|
$result = round($traff / pow($KB, $index), 3) . ' ' . $units[$index] . 'b';
|