]> git.llucax.com Git - z.facultad/75.06/jacu.git/blobdiff - src/jacu.c
Bugfix. Ya anda bien el fsize() y vfsize().
[z.facultad/75.06/jacu.git] / src / jacu.c
index b435e7b50789b295d9b2a2ebf7eed88e7caa31f1..4d6168856ab20e20cecd31736c3e63b9e0b497ed 100644 (file)
@@ -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;
 }