class Protocol::HTTP::Body::ZStream

def ratio

def ratio
	if @input_length != 0
		@output_length.to_f / @input_length.to_f
	else
		1.0
	end
end