src/Display.php
protected function getReadableMemory($size, $percision = 2)
    {
        $unitOptions = array('b', 'k', 'M', 'G');

        $base = log($size, 1024);

        $memory = round(pow(1024, $base - floor($base)), $percision);
        $unit = $unitOptions[floor($base)];
        return "{$memory} {$unit}";
    }
protected function getReadableMemory($size, $percision = 2)
    {
        $unitOptions = array('b', 'k', 'M', 'G');

        $base = log($size, 1024);

        $memory = round(pow(1024, $base - floor($base)), $percision);
        $unit = $unitOptions[floor($base)];
        return "{$memory} {$unit}";
    }
protected function getReadableMemory ( $ size , $ percision = 2 ) { $ unitOptions = array ( 'b' , 'k' , 'M' , 'G' ) ; $ base = log ( $ size , 1024 ) ; $ memory = round ( pow ( 1024 , $ base - floor ( $ base ) ) , $ percision ) ; $ unit = $ unitOptions [ floor ( $ base ) ] ; return "{$memory} {$unit}" ; }
Formatter for human-readable memory
Only handles time up to a few gigs gracefully

@param double  $size
@param integer $percision
Formatter for human - readable memory Only handles time up to a few gigs gracefully