Changed summary
This commit is contained in:
parent
6176c8987e
commit
9b3cee20d3
|
@ -57,11 +57,10 @@ cclt_parameters parse_arguments(int argc, char* argv[]) {
|
||||||
if ((c = getopt (argc, argv, "q:velo:s:hR")) != -1) {
|
if ((c = getopt (argc, argv, "q:velo:s:hR")) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'v':
|
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);
|
exit(0);
|
||||||
break;
|
break;
|
||||||
case '?':
|
case '?':
|
||||||
//TODO if -o not specified or empty, use current. Useful?
|
|
||||||
if (optopt == 'q' || optopt == 'o' || optopt == 's') {
|
if (optopt == 'q' || optopt == 'o' || optopt == 's') {
|
||||||
fprintf (stderr, "Option -%c requires an argument.\n", optopt);
|
fprintf (stderr, "Option -%c requires an argument.\n", optopt);
|
||||||
//Arguments without values
|
//Arguments without values
|
||||||
|
|
15
src/main.c
15
src/main.c
|
@ -155,18 +155,15 @@ int main (int argc, char *argv[]) {
|
||||||
clock_t start = clock(), diff;
|
clock_t start = clock(), diff;
|
||||||
//We need the file list right here
|
//We need the file list right here
|
||||||
cclt_start(&pars, &i_t_size, &o_t_size);
|
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;
|
diff = clock() - start;
|
||||||
|
|
||||||
fprintf(stdout, "-------------------------------\nCompression completed in %lum%lus\n%s -> %s [%.2f%% | %s]\n",
|
fprintf(stdout, "-------------------------------\nCompression completed in %lum%lus\n%s -> %s [%.2f%% | %s]\n",
|
||||||
diff / CLOCKS_PER_SEC / 60,
|
diff / CLOCKS_PER_SEC / 60,
|
||||||
diff / CLOCKS_PER_SEC % 60,
|
diff / CLOCKS_PER_SEC % 60,
|
||||||
get_human_size((long) i_t_size),
|
get_human_size((long) i_t_size),
|
||||||
get_human_size((long) o_t_size),
|
get_human_size((long) o_t_size),
|
||||||
((float) o_t_size - i_t_size) * 100 / i_t_size,
|
((float) o_t_size - i_t_size) * 100 / i_t_size,
|
||||||
get_human_size(((long) o_t_size - i_t_size)));
|
get_human_size(((long) o_t_size - i_t_size)));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#define APP_VERSION "0.9.1-beta"
|
#define APP_VERSION "0.9.1-beta"
|
||||||
#define BUILD 20160116
|
#define BUILD 20160421
|
||||||
|
|
||||||
typedef struct cclt_jpeg_parameters {
|
typedef struct cclt_jpeg_parameters {
|
||||||
int quality;
|
int quality;
|
||||||
|
|
Loading…
Reference in New Issue