diff --git a/src/compresshelper.c b/src/compresshelper.c index 2547491..c0666f9 100644 --- a/src/compresshelper.c +++ b/src/compresshelper.c @@ -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 diff --git a/src/main.c b/src/main.c index 648b3bf..81195df 100755 --- a/src/main.c +++ b/src/main.c @@ -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; } diff --git a/src/utils.h b/src/utils.h index 58c0243..f4e910e 100644 --- a/src/utils.h +++ b/src/utils.h @@ -6,7 +6,7 @@ #include #define APP_VERSION "0.9.1-beta" -#define BUILD 20160116 +#define BUILD 20160421 typedef struct cclt_jpeg_parameters { int quality;