From: Eric S. Raymond Date: Wed, 10 Sep 2003 00:10:45 +0000 (+0000) Subject: Better printability test. X-Git-Tag: 1.1~5 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=abfb0c679a237ea270435164ba88efbccadbf5b1;p=comparator.git Better printability test. --- diff --git a/shredtree.c b/shredtree.c index 78afbd1..acd216c 100644 --- a/shredtree.c +++ b/shredtree.c @@ -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)); } }