diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:38:52 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:38:52 +0000 |
commit | 3a0284b94e3710f0c99b0e1bff2059c524d8ce27 (patch) | |
tree | 82746c9058a3749e23d4f86f7d98877cc1765f8b /main.cc | |
parent | Adding upstream version 1.2~rc2. (diff) | |
download | plzip-3a0284b94e3710f0c99b0e1bff2059c524d8ce27.tar.xz plzip-3a0284b94e3710f0c99b0e1bff2059c524d8ce27.zip |
Adding upstream version 1.2.upstream/1.2
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'main.cc')
-rw-r--r-- | main.cc | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1,6 +1,6 @@ /* Plzip - Parallel compressor compatible with lzip Copyright (C) 2009 Laszlo Ersek. - Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Antonio Diaz Diaz. + Copyright (C) 2009-2014 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 @@ -103,7 +103,7 @@ void show_help( const long num_online ) std::printf( "\nOptions:\n" " -h, --help display this help and exit\n" " -V, --version output version information and exit\n" - " -B, --data-size=<bytes> set input data block size in bytes\n" + " -B, --data-size=<bytes> set size of input data blocks, in bytes\n" " -c, --stdout send output to standard output\n" " -d, --decompress decompress\n" " -f, --force overwrite existing output files\n" @@ -688,9 +688,8 @@ int main( const int argc, const char * const argv[] ) int tmp; if( program_mode == m_compress ) { - if( verbosity >= 2 ) - show_progress( 0, &pp, ( in_statsp && S_ISREG( in_statsp->st_mode ) ) ? - in_statsp->st_size / 100 : 0 ); // init + if( verbosity >= 2 ) // init + show_progress( 0, &pp, infd_isreg ? in_statsp->st_size / 100 : 0 ); tmp = compress( data_size, encoder_options.dictionary_size, encoder_options.match_len_limit, num_workers, infd, outfd, pp, debug_level ); |