From e32f96eed2b9b22eb1ea621c398367d80c5a6729 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 2 Aug 2015 12:59:14 -0400 Subject: [PATCH] Update doc and cosmetic fixes --- assets/js/feed.js | 8 ++++---- config.default.php | 3 ++- docs/config.markdown | 4 ++++ templates/feeds.php | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/assets/js/feed.js b/assets/js/feed.js index 313f9f0..3a5c9b7 100644 --- a/assets/js/feed.js +++ b/assets/js/feed.js @@ -45,12 +45,12 @@ Miniflux.Feed = (function() { request.open("POST", "?action=refresh-feed&feed_id=" + feed_id, true); request.send(); }, - UpdateAll: function(num) { + UpdateAll: function(nb_concurrent_requests) { var feeds = Array.prototype.slice.call(document.querySelectorAll("article:not([data-feed-disabled])")); - //Check if a custom ammount of concurrent requests was defined - if(num){ - queue_length = num; + // Check if a custom amount of concurrent requests was defined + if (nb_concurrent_requests) { + queue_length = nb_concurrent_requests; } var interval = setInterval(function() { diff --git a/config.default.php b/config.default.php index 3f39292..0145cac 100644 --- a/config.default.php +++ b/config.default.php @@ -36,5 +36,6 @@ define('PROXY_PASSWORD', ''); // ENABLE_AUTO_UPDATE => default is true (enable Miniflux update from the user interface) define('ENABLE_AUTO_UPDATE', true); -// SUBSCRIPTION_CONCURRENT_REQUESTS => number of concurrent feeds to refresh at once - reduce this number on systems with limited processing power +// SUBSCRIPTION_CONCURRENT_REQUESTS => number of concurrent feeds to refresh at once +// Reduce this number on systems with limited processing power define('SUBSCRIPTION_CONCURRENT_REQUESTS', 5); diff --git a/docs/config.markdown b/docs/config.markdown index 0c38863..c27678a 100644 --- a/docs/config.markdown +++ b/docs/config.markdown @@ -49,4 +49,8 @@ define('PROXY_PASSWORD', ''); // ENABLE_AUTO_UPDATE => default is true (enable Miniflux update from the user interface) define('ENABLE_AUTO_UPDATE', true); + +// SUBSCRIPTION_CONCURRENT_REQUESTS => number of concurrent feeds to refresh at once +// Reduce this number on systems with limited processing power +define('SUBSCRIPTION_CONCURRENT_REQUESTS', 5); ``` \ No newline at end of file diff --git a/templates/feeds.php b/templates/feeds.php index ac3a3b6..417f68e 100644 --- a/templates/feeds.php +++ b/templates/feeds.php @@ -6,7 +6,7 @@
  • -
  • +