wordpress/wp-content/plugins/sqlite-integration/utilities/utility.php
/**
	 * Method to format the file size number to the unit byte.
	 *
	 * @param integer $size
	 * @return string
	 * @access private
	 */
Method to format the file size number to the unit byte.
@param integer $size
@return string
@access private
Method to format the file size number to the unit byte . @param integer $size @return string @access private
private function convert_to_formatted_number($size) {
		$unim = array('Bytes', 'KB', 'MB', 'GB', 'TB', 'PB');
		$count = 0;
		while ($size >= 1024) {
			$count++;
			$size = $size / 1024;
		}
		return number_format($size, ($count ? 2 : 0), '.', ',') . ' ' . $unim[$count];
	}
private function convert_to_formatted_number ( $ size ) { $ unim = array ( 'Bytes' , 'KB' , 'MB' , 'GB' , 'TB' , 'PB' ) ; $ count = 0 ; while ( $ size >= 1024 ) { $ count ++ ; $ size = $ size / 1024 ; } return number_format ( $ size , ( $ count ? 2 : 0 ) , '.' , ',' ) . ' ' . $ unim [ $ count ] ; }
Method to format the file size number to the unit byte.
Method to format the file size number to the unit byte .