diff --git a/src/util.c b/src/util.c index 904256a64..18448d253 100644 --- a/src/util.c +++ b/src/util.c @@ -177,7 +177,7 @@ int is_binary(const void* buf, const int buf_len) { /* Disk IO is so slow that it's worthwhile to do this calculation after every suspicious byte. */ /* This is true even on a 1.6Ghz Atom with an Intel 320 SSD. */ /* Read at least 32 bytes before making a decision */ - if (i >= 32 && (suspicious_bytes * 100) / total_bytes > 20) { + if (i >= 32 && (suspicious_bytes * 100) / total_bytes > 10) { return 1; } @@ -201,7 +201,7 @@ int is_binary(const void* buf, const int buf_len) { suspicious_bytes++; } } - if ((suspicious_bytes * 100) / total_bytes > 20) { + if ((suspicious_bytes * 100) / total_bytes > 10) { return 1; }