From: Marcus Boerger Date: Tue, 15 May 2007 16:39:19 +0000 (+0000) Subject: - Add compression ratio to info command X-Git-Tag: RELEASE_1_2_0~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a618c823f2c758cc03387c797b0b1e7fe6ae2891;p=php - Add compression ratio to info command --- diff --git a/ext/phar/phar/pharcommand.inc b/ext/phar/phar/pharcommand.inc index a9ff152d5f..9f184d94da 100755 --- a/ext/phar/phar/pharcommand.inc +++ b/ext/phar/phar/pharcommand.inc @@ -645,6 +645,7 @@ class PharCommand extends CLICommand $infos['Compressed-bz2'] = $compalg['BZ2']; $infos['Uncompressed-size'] = $usize; $infos['Compressed-size'] = $csize; + $infos['Compression-ratio'] = sprintf('%.1g%%', $csize * 100 / $usize); $infos['Metadata'] = $mcount; $l = 0;