mirror of
https://github.com/simon987/sist2.git
synced 2025-12-11 14:38:54 +00:00
make --fast faster
This commit is contained in:
@@ -87,7 +87,7 @@ void parse(void *arg) {
|
||||
|
||||
int bytes_read = 0;
|
||||
|
||||
if (doc.mime == 0) {
|
||||
if (doc.mime == 0 && !ScanCtx.fast) {
|
||||
// Get mime type with libmagic
|
||||
bytes_read = job->vfile.read(&job->vfile, buf, PARSE_BUF_SIZE);
|
||||
if (bytes_read == -1) {
|
||||
|
||||
Reference in New Issue
Block a user