bugfix - avoid double counting compiles

This commit is contained in:
Brian Gough
2016-03-17 14:37:34 +00:00
parent 595bfe09ac
commit 9f104a4f57

View File

@@ -41,7 +41,7 @@ module.exports = CompileManager =
image: request.imageName
}, (error, output, stats) ->
return callback(error) if error?
Metrics.inc("compiles")
Metrics.inc("compiles-succeeded")
for metric_key, metric_value of stats or {}
Metrics.count(metric_key, metric_value)
loadavg = os.loadavg?()