Disable output when it's not known. More endian fixes.

This commit is contained in:
Con Kolivas 2011-03-20 22:22:54 +11:00
parent f87528d14d
commit 77d44ce108
2 changed files with 4 additions and 3 deletions

View file

@ -190,8 +190,8 @@ struct rzip_control {
i64 max_mmap;
int threads;
int nice_val; // added for consistency
int major_version;
int minor_version;
char major_version;
char minor_version;
i64 st_size;
long page_size;
int fd_in;

View file

@ -359,7 +359,8 @@ i64 runzip_fd(rzip_control *control, int fd_in, int fd_out, int fd_hist, i64 exp
} while (total < expected_size || (!expected_size && !control->eof));
gettimeofday(&end,NULL);
print_progress("\nAverage DeCompression Speed: %6.3fMB/s\n",
if (!ENCRYPT)
print_progress("\nAverage DeCompression Speed: %6.3fMB/s\n",
(total / 1024 / 1024) / (double)((end.tv_sec-start.tv_sec)? : 1));
if (!NO_MD5) {