prom-client
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -14,8 +14,9 @@ 'use strict'; | ||
var cpuUserCounter = new Counter(PROCESS_CPU_SECONDS, 'Total user and system CPU time spent in seconds.'); | ||
var lastCpuUsage = null; | ||
var lastCpuUsage = process.cpuUsage(); | ||
return function() { | ||
var cpuUsage = process.cpuUsage(lastCpuUsage); | ||
var cpuUsage = process.cpuUsage(); | ||
var totalUsageMicros = (cpuUsage.user - lastCpuUsage.user) | ||
+ (cpuUsage.system - lastCpuUsage.system); | ||
lastCpuUsage = cpuUsage; | ||
var totalUsageMicros = cpuUsage.user + cpuUsage.system; | ||
@@ -22,0 +23,0 @@ cpuUserCounter.inc(totalUsageMicros / 1e6); |
{ | ||
"name": "prom-client", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "Client for prometheus", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55672
1192