Get compression ratio @access public
@version 1.2
Return value
float
Fichier
-
advagg_css_compress/
csstidy/ class.csstidy_print.inc, line 366
Classe
- csstidy_print
- CSS Printing class
Code
function get_ratio() {
if (!$this->output_css_plain) {
$this->formatted();
}
return round((strlen($this->input_css) - strlen($this->output_css_plain)) / strlen($this->input_css), 3) * 100;
}