diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-02-13 07:04:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-02-13 07:04:57 +0000 |
commit | 5a3663d51fd30fee4a7fca98ad0a9603b298e6dc (patch) | |
tree | 42445a3438223c7925efe975f2767d9c2f9405fe /LzmaEnc.c | |
parent | Adding upstream version 1.8. (diff) | |
download | pdlzip-5a3663d51fd30fee4a7fca98ad0a9603b298e6dc.tar.xz pdlzip-5a3663d51fd30fee4a7fca98ad0a9603b298e6dc.zip |
Adding upstream version 1.9.upstream/1.9
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | LzmaEnc.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1371,14 +1371,14 @@ static void LZe_full_flush(CLzmaEnc *p, uint32_t posState) { unsigned long long in_size = p->nowPos64; unsigned long long out_size = p->rc.processed + Fh_size + Ft_size; - if( in_size <= 0 || out_size <= 0 ) + if( in_size == 0 || out_size == 0 ) fputs( " no data compressed.\n", stderr ); else - fprintf( stderr, "%6.3f:1, %6.3f bits/byte, " - "%5.2f%% saved, %llu in, %llu out.\n", + fprintf( stderr, "%6.3f:1, %5.2f%% ratio, %5.2f%% saved, " + "%llu in, %llu out.\n", (double)in_size / out_size, - ( 8.0 * out_size ) / in_size, - 100.0 * ( 1.0 - ( (double)out_size / in_size ) ), + ( 100.0 * out_size ) / in_size, + 100.0 - ( ( 100.0 * out_size ) / in_size ), in_size, out_size ); } } |