branch: externals/vlf
commit 31b292dc85a374fb343789e217015683bfbdf5f1
Author: Troy Hinckley <[email protected]>
Commit: Andrey Kotlarski <[email protected]>

    fixed large-file-warning-threshold error
---
 vlf-tune.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vlf-tune.el b/vlf-tune.el
index 71e3d5f..40dfe04 100644
--- a/vlf-tune.el
+++ b/vlf-tune.el
@@ -60,7 +60,9 @@ but don't change batch size.  If t, measure and change."
                                (if ram-size
                                    (/ ram-size 20)
                                  0))
-                             large-file-warning-threshold)
+                             (if large-file-warning-threshold
+                                 large-file-warning-threshold
+                               0))
   "Maximum batch size in bytes when auto tuning.
 Avoid increasing this after opening file with VLF."
   :group 'vlf :type 'integer)

Reply via email to