Fixed issue with minification percent status output

This commit is contained in:
Chris 2017-01-10 16:06:37 +01:00
parent be93645db9
commit 29edf6e591

View File

@ -82,7 +82,7 @@ class PharBuilder
$str_tot = $formatSize($size_tot); $str_tot = $formatSize($size_tot);
if (!$verbatim) { if (!$verbatim) {
$str_min = $formatSize($size_min); $str_min = $formatSize($size_min);
$str_rat = sprintf("%.2f%%", 100/$str_tot*$str_min); $str_rat = sprintf("%.2f%%", 100/$size_tot*$size_min);
log_debug("Size: %s, Minified: %s (%s)", $str_tot, $str_min, $str_rat); log_debug("Size: %s, Minified: %s (%s)", $str_tot, $str_min, $str_rat);
} else { } else {
log_debug("Size: %s", $str_tot); log_debug("Size: %s", $str_tot);