]> thyrsus.com Git - comparator.git/commitdiff
Better printability test.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 10 Sep 2003 00:10:45 +0000 (00:10 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 10 Sep 2003 00:10:45 +0000 (00:10 +0000)
shredtree.c

index 78afbd14e57e2218fcdf51a623c332d574580a38..acd216c95f9bcea41ad16072e99fecbe99fd23dd 100644 (file)
@@ -61,7 +61,7 @@ static int eligible(const char *file)
                printable++;
 
        /* are we over the critical percentage? */
-       return (printable/strlen(buf) >= MIN_PRINTABLE);
+       return (printable >= MIN_PRINTABLE * strlen(buf));
     }
 }