예제 #1
0
 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;
     }
 }
예제 #2
0
 private void UpdateCompressionStats(float inputSize, float outputSize)
 {
     _operationsStats.TotalInputSize  += inputSize;
     _operationsStats.TotalOutputSize += outputSize;
     _operationsStats.ReductionRatio   = StatsComputationUtilities.ComputeReductionRatio(_operationsStats.TotalInputSize, _operationsStats.TotalOutputSize);
 }