diff --git a/src/main.c b/src/main.c index b844caf..6d82866 100755 --- a/src/main.c +++ b/src/main.c @@ -249,8 +249,10 @@ static int lzsa_compress(const char *pszInFilename, const char *pszOutFilename, double fDelta = ((double)(nEndTime - nStartTime)) / 1000000.0; double fSpeed = ((double)nOriginalSize / 1048576.0) / fDelta; - fprintf(stdout, "\rCompressed '%s' in %g seconds, %.02g Mb/s, %d tokens, %lld into %lld bytes ==> %g %%\n", - pszInFilename, fDelta, fSpeed, lzsa_compressor_get_command_count(&compressor), nOriginalSize, nCompressedSize, (double)(nCompressedSize * 100.0 / nOriginalSize)); + int nCommands = lzsa_compressor_get_command_count(&compressor); + fprintf(stdout, "\rCompressed '%s' in %g seconds, %.02g Mb/s, %d tokens (%lld bytes/token), %lld into %lld bytes ==> %g %%\n", + pszInFilename, fDelta, fSpeed, nCommands, nOriginalSize / ((long long)nCommands), + nOriginalSize, nCompressedSize, (double)(nCompressedSize * 100.0 / nOriginalSize)); } lzsa_compressor_destroy(&compressor);