From 77234c339c7cc0a560e717c2448619498c6e4119 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 24 Jul 2015 00:20:02 +0200 Subject: [PATCH] bigger image cache --- lib/imagecache.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/imagecache.js b/lib/imagecache.js index 18129a6..ddf7401 100644 --- a/lib/imagecache.js +++ b/lib/imagecache.js @@ -31,7 +31,7 @@ exports.createCache = function (imageFile, log) { var images = Fs.readFileSync(imageFile, "utf8").split("\n"); images = images.filter(function (img) { - return (img.length > 4); + return (img.length > 6); }); var imgCache = []; @@ -41,7 +41,7 @@ exports.createCache = function (imageFile, log) { nextImage: function nextimage() { var image = images[Math.floor(images.length * Math.random())]; - if (imgCache.length > 4) { + if (imgCache.length > 6) { imgCache.shift(); } imgCache.push(image);