From 33893e40b8a12d8fa95c991e20e9d03307fda908 Mon Sep 17 00:00:00 2001 From: go1dfish Date: Thu, 25 Apr 2019 13:48:50 -0700 Subject: [PATCH] Fix for gc_info_enable --- lib/les.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/les.js b/lib/les.js index 45d78578..8ffddfa2 100644 --- a/lib/les.js +++ b/lib/les.js @@ -71,7 +71,7 @@ const gc_enable = root.opt.gc_enable ? root.opt.gc_enable : true; const gc_delay = root.opt.gc_delay ? root.opt.gc_delay : 1000; - const gc_info_enable = root.opt.gc_info_enable ? root.opt.gc_info_enable : true; + const gc_info_enable = ("gc_info_enable" in root.opt) ? root.opt.gc_info_enable : true; const gc_info = root.opt.gc_info ? root.opt.gc_info : 5000; const gc_info_mini = root.opt.gc_info_mini ? root.opt.gc_info_mini : false;