Changed summary

This commit is contained in:
Matteo Paonessa 2016-04-21 17:17:44 +02:00
parent 6176c8987e
commit 9b3cee20d3
3 changed files with 8 additions and 12 deletions

View File

@ -57,11 +57,10 @@ cclt_parameters parse_arguments(int argc, char* argv[]) {
if ((c = getopt (argc, argv, "q:velo:s:hR")) != -1) {
switch (c) {
case 'v':
printf("CCLT - Caesium Command Line Tools - Version %s (Build: %d)\n", APP_VERSION, BUILD);
printf("CaesiumCLT - Caesium Command Line Tools - Version %s (Build: %d)\n", APP_VERSION, BUILD);
exit(0);
break;
case '?':
//TODO if -o not specified or empty, use current. Useful?
if (optopt == 'q' || optopt == 'o' || optopt == 's') {
fprintf (stderr, "Option -%c requires an argument.\n", optopt);
//Arguments without values

View File

@ -155,18 +155,15 @@ int main (int argc, char *argv[]) {
clock_t start = clock(), diff;
//We need the file list right here
cclt_start(&pars, &i_t_size, &o_t_size);
/*for (int i = 0; i < pars.input_files_count; i++) {
printf("FILE %d: %s\n", i, pars.input_files[i]);
}*/
diff = clock() - start;
fprintf(stdout, "-------------------------------\nCompression completed in %lum%lus\n%s -> %s [%.2f%% | %s]\n",
diff / CLOCKS_PER_SEC / 60,
diff / CLOCKS_PER_SEC % 60,
get_human_size((long) i_t_size),
get_human_size((long) o_t_size),
((float) o_t_size - i_t_size) * 100 / i_t_size,
get_human_size(((long) o_t_size - i_t_size)));
diff / CLOCKS_PER_SEC / 60,
diff / CLOCKS_PER_SEC % 60,
get_human_size((long) i_t_size),
get_human_size((long) o_t_size),
((float) o_t_size - i_t_size) * 100 / i_t_size,
get_human_size(((long) o_t_size - i_t_size)));
return 0;
}

View File

@ -6,7 +6,7 @@
#include <sys/types.h>
#define APP_VERSION "0.9.1-beta"
#define BUILD 20160116
#define BUILD 20160421
typedef struct cclt_jpeg_parameters {
int quality;