This is an automated email from the ASF dual-hosted git repository.

berstler pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-openwhisk-package-cloudant.git


The following commit(s) were added to refs/heads/master by this push:
     new bae9cdf  fix trigger count for the health endpoint (#118)
bae9cdf is described below

commit bae9cdf661faa79f753cdcf10272e14088ef9635
Author: Jason Peterson <[email protected]>
AuthorDate: Mon Jul 17 15:19:08 2017 -0400

    fix trigger count for the health endpoint (#118)
---
 provider/lib/health.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/provider/lib/health.js b/provider/lib/health.js
index 2c56e2b..ecfba29 100644
--- a/provider/lib/health.js
+++ b/provider/lib/health.js
@@ -4,11 +4,12 @@ module.exports = function(utils) {
 
     // Health Endpoint
     this.endPoint = '/health';
-    var stats = {triggerCount: Object.keys(utils.triggers).length};
 
     // Health Logic
     this.health = function (req, res) {
 
+        var stats = {triggerCount: Object.keys(utils.triggers).length};
+
         // get all system stats in parallel
         Promise.all([
             si.mem(),

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to