]> granicus.if.org Git - php/commitdiff
- Add compression ratio to info command
authorMarcus Boerger <helly@php.net>
Tue, 15 May 2007 16:39:19 +0000 (16:39 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 15 May 2007 16:39:19 +0000 (16:39 +0000)
ext/phar/phar/pharcommand.inc

index a9ff152d5f4d7009f11ff587827de338926eab06..9f184d94da865310d7c7a63320bb98747f9c864e 100755 (executable)
@@ -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;