summaryrefslogtreecommitdiffstats
path: root/dec_stdout.cc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2017-05-07 15:55:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2017-05-07 15:55:05 +0000
commit6b876fb72fd61b2d0a2265c6f6394569bdca3a18 (patch)
treef9bbba110ba3a8692d8072b483bd7baf8d6d5079 /dec_stdout.cc
parentReleasing debian version 1.5-5. (diff)
downloadplzip-6b876fb72fd61b2d0a2265c6f6394569bdca3a18.tar.xz
plzip-6b876fb72fd61b2d0a2265c6f6394569bdca3a18.zip
Merging upstream version 1.6.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dec_stdout.cc')
-rw-r--r--dec_stdout.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/dec_stdout.cc b/dec_stdout.cc
index 620075e..a1a9d61 100644
--- a/dec_stdout.cc
+++ b/dec_stdout.cc
@@ -1,6 +1,6 @@
/* Plzip - Parallel compressor compatible with lzip
Copyright (C) 2009 Laszlo Ersek.
- Copyright (C) 2009-2016 Antonio Diaz Diaz.
+ Copyright (C) 2009-2017 Antonio Diaz Diaz.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -298,15 +298,15 @@ int dec_stdout( const int num_workers, const int infd, const int outfd,
delete[] worker_threads;
delete[] worker_args;
- const unsigned long long in_size = file_index.file_end();
- const unsigned long long out_size = file_index.data_end();
+ const unsigned long long in_size = file_index.cdata_size();
+ const unsigned long long out_size = file_index.udata_size();
if( verbosity >= 2 && out_size > 0 && in_size > 0 )
std::fprintf( stderr, "%6.3f:1, %6.3f bits/byte, %5.2f%% saved. ",
(double)out_size / in_size,
( 8.0 * in_size ) / out_size,
100.0 * ( 1.0 - ( (double)in_size / out_size ) ) );
if( verbosity >= 4 )
- std::fprintf( stderr, "decompressed size %9llu, size %9llu. ",
+ std::fprintf( stderr, "decompressed %9llu, compressed %9llu. ",
out_size, in_size );
if( verbosity >= 1 ) std::fputs( "done\n", stderr );