1
0
mirror of https://github.com/m00natic/vlfi.git synced 2024-10-05 18:30:51 +01:00

Set vlf-tune-max with proper value in case RAM size is wrongly

determined.
This commit is contained in:
Andrey Kotlarski 2014-11-18 12:02:24 +02:00
parent f43ada1173
commit a7be7136be

View File

@ -56,10 +56,11 @@ but don't change batch size. If t, measure and change."
(* 1000 (string-to-number (substring free match-from
(match-end 0))))))))
(defcustom vlf-tune-max (let ((ram-size (vlf-tune-ram-size)))
(if ram-size
(/ ram-size 20)
large-file-warning-threshold))
(defcustom vlf-tune-max (max (let ((ram-size (vlf-tune-ram-size)))
(if ram-size
(/ ram-size 20)
0))
large-file-warning-threshold)
"Maximum batch size in bytes when auto tuning.
Avoid increasing this after opening file with VLF."
:group 'vlf :type 'integer)