mirror of
				https://github.com/m00natic/vlfi.git
				synced 2025-11-04 00:51:37 +00:00 
			
		
		
		
	Fix vlf-tune-optimal-load with no optional arguments supplied.
This commit is contained in:
		@@ -376,11 +376,10 @@ Best considered where primitive operations total is closest to
 | 
			
		||||
confine search to this region."
 | 
			
		||||
  (if vlf-tune-enabled
 | 
			
		||||
      (progn
 | 
			
		||||
        (or max-idx
 | 
			
		||||
            (setq max-idx (min max-idx
 | 
			
		||||
                               (1- (/ (min vlf-tune-max
 | 
			
		||||
                                           (/ (1+ vlf-file-size) 2))
 | 
			
		||||
                                      vlf-tune-step)))))
 | 
			
		||||
        (setq max-idx (min (or max-idx vlf-tune-max)
 | 
			
		||||
                           (1- (/ (min vlf-tune-max
 | 
			
		||||
                                       (/ (1+ vlf-file-size) 2))
 | 
			
		||||
                                  vlf-tune-step))))
 | 
			
		||||
        (let* ((idx (max 0 (or min-idx 0)))
 | 
			
		||||
               (best-idx idx)
 | 
			
		||||
               (best-time-diff vlf-tune-load-time)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user