Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prom-client

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prom-client - npm Package Compare versions

Comparing version 6.1.0 to 6.1.1

7

lib/metrics/processCpuTotal.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc