mirror of
				https://github.com/simon987/sist2.git
				synced 2025-11-04 01:36:51 +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;
 | 
					    int bytes_read = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (doc.mime == 0) {
 | 
					    if (doc.mime == 0 && !ScanCtx.fast) {
 | 
				
			||||||
        // Get mime type with libmagic
 | 
					        // Get mime type with libmagic
 | 
				
			||||||
        bytes_read = job->vfile.read(&job->vfile, buf, PARSE_BUF_SIZE);
 | 
					        bytes_read = job->vfile.read(&job->vfile, buf, PARSE_BUF_SIZE);
 | 
				
			||||||
        if (bytes_read == -1) {
 | 
					        if (bytes_read == -1) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user