mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 19:59:09 -05:00
bugfix - avoid double counting compiles
This commit is contained in:
parent
456a8ca8cd
commit
285546fbcf
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ module.exports = CompileManager =
|
||||||
image: request.imageName
|
image: request.imageName
|
||||||
}, (error, output, stats) ->
|
}, (error, output, stats) ->
|
||||||
return callback(error) if error?
|
return callback(error) if error?
|
||||||
Metrics.inc("compiles")
|
Metrics.inc("compiles-succeeded")
|
||||||
for metric_key, metric_value of stats or {}
|
for metric_key, metric_value of stats or {}
|
||||||
Metrics.count(metric_key, metric_value)
|
Metrics.count(metric_key, metric_value)
|
||||||
loadavg = os.loadavg?()
|
loadavg = os.loadavg?()
|
||||||
|
|
Loading…
Reference in a new issue