X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/blobdiff_plain/9bd8101460fbc92595e43bb90a72f5a25594556a..de636c57356b0e6c41de1ddd5eb1018409c56a84:/src/jacu.c?ds=sidebyside diff --git a/src/jacu.c b/src/jacu.c index b435e7b..4d61688 100644 --- a/src/jacu.c +++ b/src/jacu.c @@ -119,9 +119,7 @@ long fsize(const char* filename) FILE* file; long file_size; - //printf("%s!!!\n", filename); if (!(file = fopen(filename, "ab"))) return -1; - //printf("Abrio!\n"); file_size = ftell(file); fclose(file); return file_size; @@ -212,9 +210,7 @@ int comprimir(char *src, char *dst, Uint32 pagesize, Uint32 volumesize, t_Flags free(shuff); /* Muestro bpb */ - //printf("%s: %ld bytes.\n", src, fsize(src)); - //printf("%s: %ld bytes.\n", dst, vfsize(dst)); - printf("%s: %.04f bits/byte.\n", dst, 1.0/fsize(src)*vfsize(dst)*8.0f); + printf("%s: %.04f bits/byte.\n", dst, vfsize(dst)*8.0f/fsize(src)); return 0; }