mirror of
https://github.com/simon987/sist2.git
synced 2025-04-16 08:56:45 +00:00
make --fast faster
This commit is contained in:
parent
d7cbd5d2b6
commit
eab6101cf7
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user