private void UpdateReductionStats(float inputSize, float outputSize, bool convertedToPdf) { if (!convertedToPdf) { _operationsStats.TotalInputSize += inputSize; _operationsStats.TotalOutputSize += outputSize; _operationsStats.ReductionRatio = StatsComputationUtilities.ComputeReductionRatio(_operationsStats.TotalInputSize, _operationsStats.TotalOutputSize); } else { _operationsStats.FileConvertedToPDFCount += 1; } }
private void UpdateCompressionStats(float inputSize, float outputSize) { _operationsStats.TotalInputSize += inputSize; _operationsStats.TotalOutputSize += outputSize; _operationsStats.ReductionRatio = StatsComputationUtilities.ComputeReductionRatio(_operationsStats.TotalInputSize, _operationsStats.TotalOutputSize); }