application/modules/g/views/helpers/FileSize.php
public function fileSize($size) {
        if (!$size) {
            return '0 ' . $this->_sizes[0];
        }
        return round($size/pow(1024, ($i = floor(log($size, 1024)))), $i > 1 ? 2 : 0) .
            ' ' . $this->_sizes[$i];
    }
public function fileSize($size) {
        if (!$size) {
            return '0 ' . $this->_sizes[0];
        }
        return round($size/pow(1024, ($i = floor(log($size, 1024)))), $i > 1 ? 2 : 0) .
            ' ' . $this->_sizes[$i];
    }
public function fileSize ( $ size ) { if ( ! $ size ) { return '0 ' . $ this -> _sizes [ 0 ] ; } return round ( $ size / pow ( 1024 , ( $ i = floor ( log ( $ size , 1024 ) ) ) ) , $ i > 1 ? 2 : 0 ) . ' ' . $ this -> _sizes [ $ i ] ; }
Format a filesize

@param int $size In bytes
@return string
Format a filesize