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-alarms.git


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

commit 61602caeb0eac4adf65d5b3c9c480e4caab49e37
Author: Jason Peterson <[email protected]>
AuthorDate: Mon Jul 17 15:18:31 2017 -0400

    fix trigger count for the health endpoint (#76)
---
 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