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

agentx

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agentx - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

16

lib/orders/system.js

@@ -5,3 +5,6 @@ 'use strict';

var caculateCPU = function () {
var lastTotal = 0;
var lastIdle = 0;
var calculateCPU = function () {
var cpus = os.cpus();

@@ -15,3 +18,9 @@ var total = 0;

}
return 1 - idle / total;
var diffTotal = total - lastTotal;
var diffIdle = idle - lastIdle;
lastTotal = total;
lastIdle = idle;
return 1 - diffIdle / diffTotal;
};

@@ -28,3 +37,3 @@

load15: loadavg[2],
cpu: caculateCPU()
cpu: calculateCPU()
};

@@ -39,1 +48,2 @@ };

};

2

package.json
{
"name": "agentx",
"version": "1.0.0",
"version": "1.0.1",
"description": "agentx is powered by alinode",

@@ -5,0 +5,0 @@ "scripts": {

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